/* =================================================================
   FORMULAR DEMO — demo.css
   ================================================================= */

/* HERO */
.fd-hero {
    background: linear-gradient(135deg, #1a6d88 0%, #2193b0 50%, #6dd5ed 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fd-hero::before {
    content: '';
    position: absolute;
    width: 32vw;
    height: 32vw;
    background: rgba(255,255,255,0.06);
    transform: rotate(45deg);
    right: -10vw;
    top: -10vw;
    pointer-events: none;
}

.fd-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.fd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    padding: 6px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.fd-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.fd-hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* NOTICES */
.fd-notices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 580px;
    margin: 0 auto;
}

.fd-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: left;
}

.fd-notice--info {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.fd-notice--warn {
    background: rgba(255,200,50,0.18);
    border: 1px solid rgba(255,200,50,0.4);
    color: #fff;
}

.fd-notice i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}

/* WIZARD SECTION */
.fd-wizard-section {
    background: #f4f8fb;
    padding: 64px 20px 80px;
    min-height: 480px;
}

.fd-wizard-wrap {
    max-width: 860px;
    margin: 0 auto;
}

/* STEP */
.fd-step {
    animation: fd-step-in 0.35s ease both;
}

.fd-step--hidden {
    display: none;
}

.fd-step--enter {
    animation: fd-step-in 0.35s ease both;
}

@keyframes fd-step-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fd-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.fd-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fd-step-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

/* TYPE CARDS */
.fd-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.fd-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 28px;
    background: #fff;
    border: 2px solid #e2ecf4;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(33,147,176,0.07);
    outline: none;
}

.fd-type-card:hover {
    border-color: #2193b0;
    box-shadow: 0 6px 24px rgba(33,147,176,0.15);
    transform: translateY(-3px);
}

.fd-type-card--selected {
    border-color: #2193b0;
    box-shadow: 0 6px 28px rgba(33,147,176,0.22);
    background: #f0fafd;
}

.fd-type-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: #fff;
    transition: transform 0.2s ease;
}

.fd-type-card:hover .fd-type-icon,
.fd-type-card--selected .fd-type-icon {
    transform: scale(1.08);
}

.fd-type-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 8px;
}

.fd-type-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    color: #7a93a8;
    margin: 0;
    line-height: 1.4;
}

.fd-type-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2193b0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fd-type-card--selected .fd-type-check {
    opacity: 1;
    transform: scale(1);
}

/* BUTTONS */
.fd-step-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    text-decoration: none;
}

.fd-btn-primary {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(33,147,176,0.3);
}

.fd-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1a7a94 0%, #4dc8e0 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(33,147,176,0.4);
}

.fd-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #2193b0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    margin-right: auto;
}

.fd-back-btn:hover {
    color: #1a7a94;
}

/* STEP 2 FORM */
.fd-form-body {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2ecf4;
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 2px 12px rgba(33,147,176,0.07);
}

.fd-selected-type-show {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.92rem;
    color: #5a7a8e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fd-selected-type-show strong {
    color: #2c3e50;
}

.fd-change-link {
    color: #2193b0;
    cursor: pointer;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: underline;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.fd-change-link:hover {
    color: #1a7a94;
}

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

.fd-field label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
}

.fd-optional {
    font-weight: 400;
    color: #7a93a8;
    font-size: 0.82rem;
}

.fd-field input {
    padding: 12px 16px;
    border: 2px solid #e2ecf4;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #2c3e50;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafcfe;
}

.fd-field input:focus {
    border-color: #2193b0;
    box-shadow: 0 0 0 3px rgba(33,147,176,0.12);
    background: #fff;
}

.fd-notice--sm {
    font-size: 0.82rem;
    padding: 10px 14px;
    background: #f0fafd;
    border: 1px solid #c5e8f5;
    color: #4a7a90;
    border-radius: 8px;
}

.fd-notice--sm i {
    color: #2193b0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .fd-hero {
        padding: 60px 20px 48px;
    }

    .fd-hero-title {
        font-size: 1.6rem;
    }

    .fd-type-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fd-type-card {
        flex-direction: row;
        text-align: left;
        padding: 18px 20px;
        gap: 16px;
    }

    .fd-type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .fd-type-info {
        flex: 1;
    }

    .fd-type-check {
        position: static;
        margin-left: auto;
        flex-shrink: 0;
    }

    .fd-form-body {
        padding: 20px;
    }

    .fd-wizard-section {
        padding: 40px 16px 60px;
    }

    .fd-step-title {
        font-size: 1.2rem;
    }
}
