.fintech-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 500px;
    width: 100%;
    border-top: 5px solid var(--primary-blue);
}

.form-header h2 {
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.form-header p {
    color: var(--text-grey);
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.input-row {
    display: flex;
    gap: 15px;
}

.half-width {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    color: var(--text-dark);
    box-sizing: border-box;
    transition: border-color 0.2s;
    background-color: #f9f9f9;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #fff;
}

/* Checkbox Style */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.checkbox-wrapper input {
    margin-top: 3px;
    margin-right: 10px;
}

.checkbox-wrapper label {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    max-width: 90%;
    cursor: pointer;
}

/* Custom Button Styling (div based) */
.custom-btn {
    background-color: rgba(2, 102, 154, 1);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.custom-btn:hover {
    background-color: rgba(85, 172, 239, 1);
}

.custom-btn:active {
    transform: translateY(1px);
}

/* Validation Styles */
.error-msg {
    color: var(--error-red);
    font-size: 11px;
    margin-top: 4px;
    display: none;
    position: absolute;
    bottom: -16px;
    left: 0;
}

.block-error {
    position: static;
    width: 100%;
    margin-top: 5px;
    margin-left: 23px;
}

input.error {
    border-color: var(--error-red);
    background-color: #fff8f8;
}

/* Loader */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: none;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup-overlay.active {
    opacity: 1;
}

.popup-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-header {
    background: #f0f2f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e4e8;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
}

.close-icon {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-icon:hover {
    color: var(--text-dark);
}

.popup-body {
    padding: 30px 20px;
    text-align: center;
}

.check-icon {
    font-size: 50px;
    color: #28a745;
    margin-bottom: 15px;
}

.popup-body p {
    color: var(--text-grey);
    line-height: 1.5;
    margin-bottom: 25px;
}

.popup-btn {
    margin: 0 auto;
    width: fit-content;
    padding: 10px 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    .fintech-container {
        padding: 25px;
    }
}