/* Custom Clean White Styling for the User Information Form Card */
.co-form-card-inner {
    padding: 28px 24px;
}

.co-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid #E2E8F0;
    gap: 12px;
}

.co-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-form-title i {
    color: #0F172A;
}

.co-form-subtitle {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
}

.co-sebi-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.co-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
}

@media (max-width: 640px) {
    .co-form-grid {
        grid-template-columns: 1fr;
    }
}

.co-form-group {
    display: flex;
    flex-direction: column;
}

.co-form-group.full-width {
    grid-column: 1 / -1;
}

.co-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.co-form-label .req {
    color: #EF4444;
    font-weight: 700;
}

.co-form-input,
.co-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 0.92rem;
    color: #0F172A;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.co-form-input:focus,
.co-form-textarea:focus {
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.co-form-input::placeholder,
.co-form-textarea::placeholder {
    color: #94A3B8;
}

.co-form-hint {
    font-size: 0.74rem;
    color: #64748B;
    margin-top: 4px;
}

.co-form-textarea {
    resize: vertical;
    min-height: 72px;
}

.co-form-trust-strip {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .co-form-trust-strip {
        grid-template-columns: 1fr;
    }
}

.co-form-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #64748B;
}

.co-form-trust-item i {
    color: #10B981;
    font-size: 0.95rem;
}

.co-error-banner {
    display: none;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Realtime Field Validation Feedback */
.co-form-input.is-invalid,
.co-form-textarea.is-invalid {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.co-form-input.is-valid {
    border-color: #10B981 !important;
    background-color: #F0FDF4 !important;
}

.co-field-error-msg {
    color: #DC2626;
    font-size: 0.74rem;
    font-weight: 600;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 4px;
}

.co-field-error-msg.show {
    display: flex;
}

@keyframes coShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.shake {
    animation: coShake 0.4s ease-in-out;
}

/* Success Celebration Modal Overlay */
.co-success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.co-success-modal-dialog {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomCoIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomCoIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.co-success-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #DCFCE7;
    border: 2px solid #22C55E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #16A34A;
    margin-bottom: 16px;
}

.co-success-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
}

.co-success-msg {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.45;
}

.co-success-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.84rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.co-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.co-success-row span:first-child {
    color: #64748B;
}

.co-success-row span:last-child {
    color: #0F172A;
    font-weight: 600;
}

.co-redirecting-text {
    color: #0F172A;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes coSpin {
    to {
        transform: rotate(360deg);
    }
}