/* ===== FORM PAGE STYLES ===== */

.form-section {
    padding: 80px 0 120px;
    background: var(--bg-main, #fff);
}

.container--narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Form Groups ===== */
.sf__group {
    background: #fff;
    border: 1px solid var(--border, #E8ECF1);
    border-radius: var(--radius-xl, 20px);
    padding: 36px 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.sf__group:hover {
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.06));
    border-color: rgba(245, 184, 0, 0.2);
}

.sf__group--hidden {
    display: none;
    animation: sfSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sf__group--visible {
    display: block;
}

@keyframes sfSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Group Header */
.sf__group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.sf__step-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5B800, #D4A000);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 184, 0, 0.3);
}

.sf__group-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #0A0A1A);
    margin: 0;
    letter-spacing: -0.02em;
}

/* ===== Fields ===== */
.sf__fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sf__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #0A0A1A);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf__label i {
    color: var(--primary, #F5B800);
    font-size: 13px;
}

.sf__input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border, #E8ECF1);
    border-radius: var(--radius-md, 14px);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary, #0A0A1A);
    background: var(--bg-main, #fff);
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.sf__input::placeholder {
    color: #A0A8B8;
}

.sf__input:focus {
    border-color: var(--primary, #F5B800);
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.12);
}

.sf__input--error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
}

.sf__error {
    font-size: 13px;
    color: #EF4444;
    min-height: 0;
    transition: all 0.2s ease;
}

.sf__error:not(:empty) {
    min-height: 18px;
    margin-top: 2px;
}

/* Phone Input */
.sf__phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border, #E8ECF1);
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    transition: all 0.25s ease;
}

.sf__phone-wrap:focus-within {
    border-color: var(--primary, #F5B800);
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.12);
}

.sf__phone-prefix {
    display: flex;
    align-items: center;
    padding: 14px 14px 14px 18px;
    background: var(--bg-alt, #F6F8FB);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary, #555);
    border-right: 1.5px solid var(--border, #E8ECF1);
    white-space: nowrap;
}

.sf__input--phone {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sf__input--phone:focus {
    box-shadow: none !important;
}

/* ===== Role Cards ===== */
.sf__role-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sf__role-card {
    cursor: pointer;
    position: relative;
}

.sf__role-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sf__role-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border: 2px solid var(--border, #E8ECF1);
    border-radius: var(--radius-lg, 16px);
    background: var(--bg-main, #fff);
    transition: all 0.25s ease;
    text-align: center;
}

.sf__role-card-inner i {
    font-size: 24px;
    color: #A0A8B8;
    transition: color 0.25s ease;
}

.sf__role-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0A0A1A);
}

.sf__role-desc {
    font-size: 12px;
    color: var(--text-secondary, #666);
}

.sf__role-card:hover .sf__role-card-inner {
    border-color: rgba(245, 184, 0, 0.4);
    background: rgba(245, 184, 0, 0.03);
}

.sf__role-card input:checked ~ .sf__role-card-inner {
    border-color: var(--primary, #F5B800);
    background: rgba(245, 184, 0, 0.06);
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.1);
}

.sf__role-card input:checked ~ .sf__role-card-inner i {
    color: var(--primary, #F5B800);
}

/* ===== City Grid ===== */
.sf__city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sf__city-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 12px;
    border: 2px solid var(--border, #E8ECF1);
    border-radius: var(--radius-lg, 16px);
    background: var(--bg-main, #fff);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #0A0A1A);
}

.sf__city-card i {
    font-size: 22px;
    color: #A0A8B8;
    transition: color 0.25s ease;
}

.sf__city-card:hover {
    border-color: rgba(245, 184, 0, 0.4);
    background: rgba(245, 184, 0, 0.03);
    transform: translateY(-2px);
}

.sf__city-card--active {
    border-color: var(--primary, #F5B800) !important;
    background: rgba(245, 184, 0, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.1);
}

.sf__city-card--active i {
    color: var(--primary, #F5B800);
}

/* ===== Type Cards ===== */
.sf__type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sf__type-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 24px;
    border: 2px solid var(--border, #E8ECF1);
    border-radius: var(--radius-xl, 20px);
    background: var(--bg-main, #fff);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.sf__type-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md, 14px);
    background: var(--bg-alt, #F6F8FB);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sf__type-icon i {
    font-size: 24px;
    color: #A0A8B8;
    transition: color 0.3s ease;
}

.sf__type-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf__type-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #0A0A1A);
}

.sf__type-desc {
    font-size: 13px;
    color: var(--text-secondary, #666);
}

.sf__type-card:hover {
    border-color: rgba(245, 184, 0, 0.4);
    background: rgba(245, 184, 0, 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.06));
}

.sf__type-card--active {
    border-color: var(--primary, #F5B800) !important;
    background: rgba(245, 184, 0, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.1) !important;
}

.sf__type-card--active .sf__type-icon {
    background: linear-gradient(135deg, #F5B800, #D4A000);
}

.sf__type-card--active .sf__type-icon i {
    color: #fff;
}

/* ===== Search ===== */
.sf__search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.sf__search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0A8B8;
    font-size: 14px;
    pointer-events: none;
}

.sf__input--search {
    padding-left: 46px;
    padding-right: 42px;
}

.sf__search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #A0A8B8;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.sf__search-clear:hover {
    color: var(--text-primary, #0A0A1A);
}

/* ===== Institution List ===== */
.sf__institution-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

.sf__institution-list::-webkit-scrollbar {
    width: 5px;
}

.sf__institution-list::-webkit-scrollbar-track {
    background: transparent;
}

.sf__institution-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.sf__inst-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid var(--border, #E8ECF1);
    border-radius: var(--radius-md, 14px);
    background: var(--bg-main, #fff);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary, #0A0A1A);
}

.sf__inst-item i {
    color: #A0A8B8;
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.sf__inst-item:hover {
    border-color: rgba(245, 184, 0, 0.4);
    background: rgba(245, 184, 0, 0.03);
}

.sf__inst-item--active {
    border-color: var(--primary, #F5B800) !important;
    background: rgba(245, 184, 0, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.08);
}

.sf__inst-item--active i {
    color: var(--primary, #F5B800);
}

.sf__inst-item--no-results {
    justify-content: center;
    color: var(--text-secondary, #666);
    cursor: default;
    border-style: dashed;
    padding: 24px;
}

.sf__inst-item--no-results:hover {
    border-color: var(--border, #E8ECF1);
    background: var(--bg-main, #fff);
}

/* ===== Other Button ===== */
.sf__other-wrap {
    margin-top: 4px;
}

.sf__other-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px dashed #D1D5DB;
    border-radius: var(--radius-md, 14px);
    background: var(--bg-alt, #F6F8FB);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    width: 100%;
    text-align: left;
}

.sf__other-btn i {
    color: var(--primary, #F5B800);
    font-size: 16px;
}

.sf__other-btn:hover {
    border-color: var(--primary, #F5B800);
    background: rgba(245, 184, 0, 0.04);
    color: var(--text-primary, #0A0A1A);
}

.sf__other-btn--active {
    border-color: var(--primary, #F5B800) !important;
    background: rgba(245, 184, 0, 0.06) !important;
    border-style: solid !important;
    color: var(--text-primary, #0A0A1A) !important;
}

.sf__other-input-wrap {
    margin-top: 12px;
    animation: sfSlideIn 0.3s ease forwards;
}

/* ===== Submit ===== */
.sf__submit-wrap {
    text-align: center;
    margin-top: 12px;
}

.sf__submit-btn {
    min-width: 280px;
    font-size: 16px;
    padding: 18px 40px;
}

/* ===== Success ===== */
.sf__success {
    animation: sfSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sf__success-inner {
    text-align: center;
    padding: 60px 32px;
    background: #fff;
    border: 1px solid var(--border, #E8ECF1);
    border-radius: var(--radius-xl, 20px);
}

.sf__success-icon {
    font-size: 64px;
    color: #10B981;
    margin-bottom: 20px;
}

.sf__success-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #0A0A1A);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.sf__success-desc {
    font-size: 16px;
    color: var(--text-secondary, #666);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* WhatsApp Button */
.sf__whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-md, 14px);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.sf__whatsapp-btn i {
    font-size: 22px;
}

.sf__whatsapp-btn:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.sf__whatsapp-btn:active {
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .form-section {
        padding: 48px 0 80px;
    }

    .sf__group {
        padding: 24px 20px;
        border-radius: var(--radius-lg, 16px);
    }

    .sf__city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf__type-options {
        grid-template-columns: 1fr;
    }

    .sf__role-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .sf__role-card-inner {
        padding: 16px 8px;
    }

    .sf__role-card-inner i {
        font-size: 20px;
    }

    .sf__role-name {
        font-size: 13px;
    }

    .sf__role-desc {
        font-size: 11px;
    }

    .sf__submit-btn {
        width: 100%;
        min-width: auto;
    }

    .sf__success-inner {
        padding: 40px 20px;
    }

    .sf__success-icon {
        font-size: 48px;
    }

    .sf__success-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container--narrow {
        padding: 0 16px;
    }

    .sf__city-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sf__city-card {
        padding: 16px 8px;
        font-size: 13px;
    }

    .sf__city-card i {
        font-size: 18px;
    }

    .sf__type-card {
        padding: 20px 16px;
        gap: 14px;
    }

    .sf__type-icon {
        width: 46px;
        height: 46px;
    }

    .sf__type-icon i {
        font-size: 20px;
    }
}
