* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    background: #e8edf3;
}

/* .left {
    display:grid;
    grid-template-columns:1fr 1fr;
    height:100vh;
    overflow:hidden;
} */

.left {
    height: 100vh;
    overflow-y: auto;
}

/* .formpanel {
    height: 100vh;
    background-color: #e8edf3;
    overflow-y: auto;
} */

.formpanel {
    height: 100vh;
    background-color: #e8edf3;
    overflow-y: auto;
    max-width: 700px;
    margin: 2rem auto;
    border: 2px solid #0b1f33;
}

.formheader{
    background-color: #1a3a5c;
    padding: 1rem 1.8rem;
    position: sticky;
    top: 0;
    z-index:10;
    display:flex;
    align-items:center;
    gap:1rem;
}

.formheader img{
    width:48px;
    height:48px;
    object-fit:contain;
    flex-shrink:0;
}

.form-header-text h1{
    font-size: 15px;
    font-weight:600;
    color:#fff;
    margin-bottom:2px;
}

.form-header-text p{
    font-size:10px;
    color:#a8c4e0;
    letter-spacing:.5px;
}

.gold-stripe {
    height:3px;
    background:#c9a84c;
}
.formbody {
    padding:1.5rem 1.8rem;
}

.stepbar {
    display: flex;
    gap: 0;
    margin-bottom: 1.8rem;
    border-radius:4px;
    overflow:hidden;
    border:1px solid #d0dae4;
}

.step {
    flex:1;
    min-width: 0;
    padding: 8px 4px; 
    background: #f2f5f8;
    border:none;
    font-family:'Outfit',sans-serif;
    font-size:10px;
    font-weight:500;
    color:#5a7a96;
    cursor:pointer;
    text-align:center;
    transition:background 0.15s,color 0.15s;
    border-right:1px solid #d0dae4;
    line-height:1.3;
}

.step:last-child{
    border-right:none;
}

.step.active { 
    background:#1a3a5c;
    color:#fff;
}

.step.done { 
    background: #c9a84c; 
    color: #1a2a3a;
}

.steppage {
    display:none;
}

.steppage.active { 
    display:block;
}

.field { 
    margin-bottom:1.1rem;
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #1a3a5c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom :4px;
}

.field label span{
    color:#c0392b;margin-left:2px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #d0dae4;
    border-radius: 4px;
    padding: 9px 12px;
    font-size:13px;
    font-family:'Outfit',sans-serif;
    color: #1a3a5c;
    outline: none;
    transition: border-color 0.15s;
    background:#fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color:#1a3a5c;
}

.field textarea {
    resize: vertical;
    min-height: 80px;
    line-height:1.5;
}

.field .hint { 
    font-size: 10.5px;
    color:#8a9aaa;
    margin-top: 3px;
}

.fieldrow { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    background:#f2f5f8;
    padding: 5px 10px;
    border-radius:3px;
    font-size: 11.5px;
    color: #1a3a5c;
    cursor: pointer;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid #d0dae4;
    transition: background 0.1s;
}

.checkbox-group input[type=checkbox] {
    width: 13px;
    height: 13px;
    accent-color: #1a3a5c;
}

.checkbox-group label.checked {
    background: #1a3a5c;
    color: #fff;
    border-color: #1a3a5c;
}

.photoupload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.photopreview {
    width: 72px;
    height: 84px;
    border: 2px dashed #c9a84c;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7f9fb;
    cursor: pointer;
    font-size: 28px;
}

.photopreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    background: #f2f5f8;
    border: 1px solid #d0dae4;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #1a3a5c;
    cursor: pointer;
}

.upload-btn:hover {
    background: #e8eef5;
}

.navbuttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e8eef5;
}

.btn {
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Outft', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.btnback {
    background: #f2f5f8;
    color: #1a3a5c;
    border: 1px solid #d0dae4;
}

.btnnext {
    background: #1a3a5c;
    color: #fff;
}

#submit {
    background: #c9a84c;
    color: #1a2a3a;
    font-weight: 600;
}

.progress {
    height: 3px;
    background: #e8eef5;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background: #c9a84c;
    border-radius: 2px;
    transition: width 0.3s;
}

.steptitle {
    font-size: 15px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 4px;
}

.stepdesc {
    font-size: 11.5px;
    color: #5a7a96;
    margin-bottom: 1.2rem;
}

.reviewyours {
    background: #f7f9fb;
    border: 1px solid #d0dae4;
    border-radius: 6px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.reviewtitle {
    font-size: 12.5px;
    color: #1a3a5c;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.reviewlist {
    font-size: 12px;
    color: #5a7a96;
    line-height: 2;
    padding-left: 1.2rem;
}

.form-error {
    background: #fdf0f0;
    border: 1px solid #f0c0c0;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-size: 12.5px;
    color: #c0392b;
    display: none;
    margin-bottom: 1rem;
}

.successbox {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
}

.successbox .check {
    font-size: 48px;
    margin-bottom: 1rem;
}

.successbox h2 {
    font-size: 20px;
    color: #1a3a5c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.successbox p {
    font-size: 13px;
    color: #5a7a96;
}

.mobilepreview {
    display: none;
}

.previewtoggle {
    display: none;
}

@media (max-width: 768px) {
    html, body {
        height: auto;
    }

    .left {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .previewpanel {
        display: none;
    }

    .previewtoggle {
        display: block;
    }

    .formpanel {
        height: auto;
        overflow-y: visible;
        min-height: 100vh;
        margin: 20px;
    }

    .fieldrow{
        grid-template-columns: 1fr;
    }

    .previewtoggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #1a3a5c;
        color: #c9a84c;
        font-size: 11px;
        font-weight: 500;
        padding: 10px;
        cursor: pointer;
        border: none;
        width: 100%;
        font-family: 'Outfit', sans-serif;
    }

    .mobilepreview.open {
        display: block;
        background: #d6dce4;
        padding: 1rem;
        overflow-x: auto;
    }
}
