:root{
    --navy: #001c3b;
    --teal-dark: #000;
    --teal: #0d6f74;
    --gold: #0d6f74;
    --white: #ffffff;
    --off-white: #f7fafc;
    --border-light: #e2e5e9;
    --shield-gray: #eef0f2;
    --text-body: #3a3a3a;
    --text-muted: #dddfe4;
    --font: "Poppins", sans-serif;
}

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

body{
    font-family: var(--font);
    color: var(--navy);
    background: var(--off-white);
}
.container{max-width: 1366px; margin: 0 auto;}

img, svg{ max-width: 100%; }

/* ===== HEADER (shown once) ===== */
.header{
    padding: clamp(20px,4vw,20px) clamp(20px,5.5vw,70px);
    background: var(--white);
}
.header>.container{
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap: 20px;
}
.logo-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.logo-row img{width:450px;}

.tagline{ text-align:center; margin-right: 100px;}
.tagline div{
    font-size: clamp(18px,2.2vw,36px);
    color: var(--navy);
    letter-spacing: 0.5px;
    line-height: 1.5;
    white-space: nowrap;
}
.tagline .rule{ width:60px; height: 2px; background:#ff6b6b; margin: 2px auto; }
.tagline .resolve{ color: var(--teal); }

/* ===== STEP TRACKER ===== */
.steps{
    display:flex;
    align-items:center;
    padding: clamp(20px,4vw,40px) clamp(20px,5.5vw,70px) clamp(20px,4vw,40px) clamp(20px,5vw,65px);
}
.step-circle{
    width: clamp(38px,5vw,60px);
    height: clamp(38px,5vw,60px);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    color: var(--teal-dark);
    font-size: 22px;
}
.step-circle svg{ width:50%; height:50%; fill: var(--teal);}
.step-circle.active{ border: 2px dotted var(--teal); background: var(--teal); }
.step-circle.active svg{fill:var(--white);}
.step-circle.inactive{ border: 1.5px dotted #b9c2cc; color: var(--teal); background: var(--white); }
.step-line{ flex:1; height:0; border-top: 2px dotted #c7ccd2; margin: 0 6px; }

/* ===== PAGE 1: LANGUAGE CARDS ===== */
.lang-section{
    display:flex;
    gap: clamp(16px,3vw,30px);
    padding: 0 clamp(20px,5vw,65px);
}
.lang-card{
    flex:1 1 220px;
    border: 1px solid var(--border-light);
    background: var(--white);
    border-radius:10px;
    padding: clamp(30px,5vw,50px) 20px clamp(24px,4vw,40px);
    text-align:center;
}
.lang-card svg{width:100px; fill: var(--teal);}
.lang-icon{ width: clamp(70px,10vw,100px); height: clamp(70px,10vw,100px); margin: 0 auto 20px; }
.lang-title{ font-size: clamp(14px,2vw,22px); font-weight:600; letter-spacing: 1px; margin-bottom: 14px; }
.lang-sub{ font-size: 12px; letter-spacing: 1px; color: var(--navy); }
.lang-2 svg,.lang-3 svg{fill: var(--teal);}

.instruction{
    text-align:center;
    font-family: var(--font);
    font-size: clamp(16px,2vw,30px);
    font-weight: 400;
    letter-spacing: 1px;
    padding: clamp(30px,5vw,55px) 20px;
    line-height:54px;
}
.instruction span{font-weight:600; display:block;}

/* ===== SHARED FORM PAGES ===== */
.page-section{ padding-top: 10px; }

.form-card{
    border:1px solid var(--border-light);
    border-radius:10px;
    margin: 0 clamp(20px,5vw,65px) 50px;
    padding: clamp(28px,4vw,50px) clamp(24px,4.5vw,55px);
    background: var(--white);
}
.form-card h2{
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    margin-bottom: 22px;
    color: var(--navy);
}
.form-card p{
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--navy);
    margin-bottom: 10px;
}
.form-card .link{ color: var(--teal); }

textarea{
    width:100%;
    border:1px solid var(--border-light);
    border-radius:10px;
    padding:16px 20px;
    color: var(--navy);
    font-family: var(--font);
    font-size:18px;
    min-height:170px;
    resize: vertical;
}
textarea::placeholder{ color:#b9c0c8; }
.contact-fields{ display:flex; flex-direction:column; gap:14px; margin:18px 0 8px; }
.contact-row{ display:flex; gap:14px; }
.contact-row input{ flex:1; min-width:0; }
.contact-fields input[type=text]{
    width:100%;
    border:1px solid var(--border-light);
    border-radius:10px;
    padding:14px 18px;
    color: var(--navy);
    font-family: var(--font);
    font-size:18px;
    box-sizing:border-box;
}
.contact-fields input::placeholder{ color:#b9c0c8; }
.contact-fields input.is-invalid{
    border-color:#c45c5c;
    box-shadow:0 0 0 3px rgba(196,92,92,.12);
    outline:none;
}
@media (max-width:640px){
    .contact-row{ flex-direction:column; }
}
.char-count{ color:var(--teal); font-size:13px; margin-top:8px; }
.note-teal{ color: var(--teal); font-size:18px; margin-top:16px; }

.upload-box{
    display:flex;
    position:relative;
    align-items: center;
    justify-content: center;
    border:1px solid var(--border-light);
    background: var(--off-white);
    border-radius:4px;
    padding: 36px 20px;
    margin-top:20px;
    cursor:pointer;
    overflow:hidden;
}
.upload-box input[type=file]{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    opacity:0;
    cursor:pointer;
    z-index:2;
    font-size:0;
}
.upload-box svg, .upload-box .title, .upload-box .sub, .upload-box span{ pointer-events:none; position:relative; z-index:1; }
.upload-box svg{ width:40px; height:40px; margin-right:10px; fill:var(--teal); }
.upload-box .title{ font-weight:600; font-size:15px; }
.upload-box .sub{ font-size:12.5px; color:#9aa3ad; margin-top:4px; }
.upload-box.is-drag{ border-color: var(--teal); }
.upload-previews{ display:flex; flex-wrap:wrap; gap:14px; margin-top:16px; }
.preview-card{
    width:100px;
    box-sizing: content-box;
    border:1px solid var(--border-light);
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    text-align:center;
}
.preview-card img, .preview-thumb{
    display:block;
    width:100px;
    height:100px;
    object-fit:cover;
    cursor:pointer;
}
.preview-file{
    width:100px;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f4f7fb;
    color: var(--navy);
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}
.preview-name{
    font-size:11px;
    padding:6px 6px 0;
    color:#333;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.preview-remove{
    display:block;
    width:calc(100% - 12px);
    margin:6px 6px 8px;
    border:0;
    background: var(--navy);
    color:#fff;
    border-radius:8px;
    padding:6px 8px;
    cursor:pointer;
    font-family: var(--font);
    font-size:12px;
    font-weight:500;
}
.preview-remove:hover{ background: var(--teal); }
.img-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(0,28,59,.88);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.img-modal[hidden]{ display:none !important; }
.img-modal img{ max-width:90vw; max-height:82vh; border-radius:10px; background:#fff; }
.img-modal-close{
    position:absolute;
    top:18px;
    right:18px;
    background: var(--teal);
    color: var(--white);
    border:0;
    border-radius:8px;
    padding:10px 16px;
    cursor:pointer;
    font-family: var(--font);
    font-weight:700;
    font-size:14px;
}

.cat-list{ display:flex; flex-direction:column; gap:14px; width:100%; }
.cat-row{
    display:flex;
    align-items:center;
    width:100%;
    border:1px solid var(--border-light);
    border-radius:6px;
    padding: 16px 24px;
    gap: 16px;
    flex-wrap: nowrap;
}
.cat-icon{ width:26px; height:26px; flex-shrink:0; }
.cat-label{
    font-weight:600;
    color: var(--teal);
    letter-spacing:0.2px;
    font-size:18px;
    line-height:1.45;
    flex:1 1 auto;
    width:auto;
    min-width:0;
}
.cat-divider{ width:1px; align-self:stretch; background: var(--border-light); flex-shrink:0; }
.cat-desc{ font-size:18px; line-height:1.45; color:#333; padding-left:16px; flex:1 1 auto; min-width:0; }
.cat-row svg{fill:var(--teal); width:32px; height:32px; flex-shrink:0;}

button.btn, a.btn{
    font-family: var(--font);
    display:inline-block;
    padding: 14px 60px;
    border-radius:10px;
    font-weight:600;
    font-size:18px;
    border: 1px solid #d4d4d5;
    text-align:center;
    cursor:pointer;
    text-decoration:none;
    box-sizing:border-box;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn-prev{ background:var(--off-white); border-color:#e2e5e9; color:#c7ccd2; }
.btn-prev:hover{ border-color:var(--teal); color:var(--teal); }
.btn-next{ background: var(--teal); color:#fff; }
.btn-next:hover{ background:#0b3a46; box-shadow: 0 4px 10px rgba(15,76,92,0.3); transform: translateY(-1px); }
.btn-next:disabled,
.btn-next.is-uploading{
    opacity:.82;
    cursor:wait;
    box-shadow:none;
    transform:none;
}
.btn-next.is-uploading:hover,
.btn-next:disabled:hover{
    background: var(--teal);
    transform:none;
    box-shadow:none;
}
.btn-outline{ background: var(--white); color:var(--teal); border: 1px solid var(--teal) !important; padding-block: 10px !important;}
.btn-outline:hover{ background:var(--teal); color:var(--white); box-shadow: 0 4px 10px rgba(15,76,92,0.3); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn-center{ display:block; margin: 40px auto 60px; }
a.btn.btn-center, button.btn.btn-center{ display:block; width:fit-content; margin:40px auto 60px; color:#fff; }
.btn-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    margin:30px 0 0;
}
.restart-wrap{ text-align: center; margin-bottom: 40px; }

@media (max-width:700px){
    .form-card h2{ font-size:20px; }
    .form-card p,
    .cat-label,
    .cat-desc,
    .cat-row.is-choice .cat-label{ font-size:16px; }
    .cat-row{ flex-wrap: wrap; }
    .cat-label{ width:100%; flex:1 1 100%; }
    .cat-divider{ display:none; }
    .cat-desc{ padding-left:0; width:100%; }
}

/* ===== PAGE 6: CONFIRMATION ===== */
.confirm-wrap{
    position:relative;
    text-align:center;
    padding: 20px 30px;
    max-width: 900px;
    margin: 0 auto;
    background: url(images/blast-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
.confirm-icon-wrap{ position:relative; display:inline-block; }
.confirm-icon, .confirm-icon-wrap svg{ width:120px; height:120px; }
.confetti{ position:absolute; }
.confirm-title{ font-size: clamp(20px,2.6vw,27px); font-weight:600; margin-top:26px; }
.confirm-sub{ color:#555; font-size:15.5px; margin-top:16px; max-width:480px; margin-left:auto; margin-right:auto; line-height:1.6; }

.info-box{
    background:var(--white);
    border: 1px solid var(--border-light);
    border-radius:10px;
    margin: 45px clamp(20px,5vw,65px) 0;
    padding: clamp(24px,4vw,38px);
    display:flex;
    gap:26px;
    align-items:flex-start;
}
.info-icon{ width:75px; height:75px; border-radius:50%; background: var(--off-white); border:1px solid var(--teal); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-icon svg{ width:36px; height:36px; fill:var(--teal);}
.info-box h3{ color:var(--navy); font-size: clamp(18px,2vw,21px); margin-bottom:10px; }
.info-box p{ font-size:15px; line-height:1.75; color:#333; flex:1; }

.next-heading{ text-align:center; font-size: clamp(18px,2.2vw,22px); font-weight:600; margin: 55px 0 30px; }
.next-cards{ display:flex; flex-wrap:wrap; gap:24px; padding: 0 clamp(20px,5vw,65px);}
.next-card{ flex:1 1 220px; background:var(--white); border:1px solid var(--border-light); border-radius:10px; text-align:center; padding: 34px 42px; }
.next-card .icon-circle{ width:66px; height:66px; border-radius:50%; background: var(--off-white); border:1px solid var(--teal); display:flex; align-items:center; justify-content:center; margin:0 auto 20px; }
.next-card .icon-circle svg{ width:24px; height:24px; fill:var(--teal); }
.next-card .icon-circle svg path.cls-1{ fill:#fff; }
.next-card p{ font-size:14px; color:#222; line-height:1.6; }

/* ===== BOTTOM CTA BAND (shown once) ===== */
.bottom{
    position: relative;
    background: #001C3B;
    background: linear-gradient(90deg, var(--navy) 62%, var(--white) 62%);
    color: var(--white);
}
.bottom-left{
    flex: 1 1 auto;
    padding: clamp(40px,7vw,70px) clamp(20px,4vw,40px) clamp(40px,7vw,70px) clamp(20px,5vw,65px);
    border-right: 10px solid var(--teal);
    background: var(--navy);
}
.bottom-left h1{ font-size: clamp(26px,3.2vw,60px); font-weight: 600; line-height: 1.25; }
.bottom-left h1 .white{ color: var(--white); }
.bottom-left h1 .gold{ display:block; }

.footerbox{ display:flex;}

.contact-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    row-gap: 34px;
    column-gap: 30px;
    margin-top: 55px;
}
.contact-item{ display:flex; align-items:flex-start; gap: 16px; }
.contact-icon{ width:55px; height:55px; border-radius:50%; border:1px solid var(--white); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}
.contact-icon svg path {
    fill: var(--white);
}
.contact-text{ font-size:24px; line-height:1.5; font-weight:400;}
.contact-text strong{ display:block; font-weight:400; margin-bottom:2px; }
.contact-text .small{ font-weight:400; font-size:15px; }

.bottom-right{ flex: 1 1 300px; position: relative; display:flex; align-items:center; justify-content:center; padding: 40px 20px; min-height: 420px; overflow: hidden; background: var(--white);}
.gold-swoosh{ display:none; }
.shield{
    position: relative;
    width: min(430px, 90vw);
    height: auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding: 0 clamp(24px,6vw,40px);
    z-index:1;
}
.shield h3{color: var(--teal-dark);}
.lock-circle{ width: clamp(56px,8vw,76px); height: clamp(56px,8vw,76px); border-radius:50%; border:1px solid var(--navy); display:flex; align-items:center; justify-content:center; margin-bottom: clamp(16px,3vw,28px); }
.lock-circle svg{ width: 42%; height:42%; fill: var(--navy); }
.lock-circle svg path{ fill: var(--navy); }
.shield h2{ font-size: clamp(17px,2.4vw,30px); font-weight: 600; line-height: 1.4; letter-spacing: 0.5px;color: var(--teal-dark); }
.shield p{ color: #3d4a58; font-size: clamp(12px,1.6vw,24px); line-height: 1.3; max-width: 320px; }
.shield .divider{ width: 60px; height: 2px; background: var(--teal); margin: clamp(14px,3vw,26px) 0; }
.shield h3{ font-size: clamp(14px,2vw,30px); font-weight: 600; line-height: 1.4; }
.shield h3.gold{ color: var(--teal); }

/* ===== FOOTER (shown once) ===== */
.footer-bar{ background: var(--teal); color: var(--white); text-align:center; padding: 20px 16px; font-size: clamp(12px,1.6vw,18px); letter-spacing: 0.5px; }
.footer-bar .sep{ margin: 0 14px; }

.line{background-color: #d4d4d5;height: 1px;border: 0;margin: 30px 0;}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
    .header>.container{ flex-wrap: wrap; }
    .tagline{ text-align:left; margin: 0; }
    .tagline .rule{ margin: 2px auto 2px 0; }
    .bottom-left{border-right: 0; border-bottom: 10px solid var(--teal)}
    .bottom-right{ min-height: auto; flex: 1;}
    .bottom {background: linear-gradient(180deg, rgba(0, 28, 59, 1) 62%, rgba(255, 255, 255, 1) 62%);}
    .footerbox {flex-direction: column;}
}
@media (max-width: 640px){
    .lang-card svg {width: 40px;}
    .step-line{ margin: 0 3px; }
    .logo-row img {width: 260px;}
    .contact-grid{ grid-template-columns: 1fr; }
    .info-box{ flex-wrap: wrap;}
    .footer-bar{ display:flex; flex-direction:column; gap:6px; }
    .footer-bar .sep{ display:none; }
    .next-cards {
        display: flex;
        gap: 14px;
        padding: 0 clamp(14px, 2vw, 47px);
    }
    .next-card{padding: 20px;}
    .bottom {background: linear-gradient(180deg, rgba(0, 28, 59, 1) 65%, rgba(255, 255, 255, 1) 65%);}
    .footerbox {flex-direction: column;}
    .instruction{ line-height: 1.5; }
}
@media (max-width: 460px){
    .step-circle{ width:34px; height:34px; }
    .lang-section{ flex-direction:column; }
}

button.lang-card{
    appearance:none;
    -webkit-appearance:none;
    background: var(--white);
    font-family:inherit;
    color:inherit;
    cursor:pointer;
    border: 1px solid var(--border-light);
}
button.lang-card:hover{ border-color:#cfd4da; }
label.cat-row{ cursor:pointer; position:relative; }
label.cat-row input{ position:absolute; opacity:0; width:0; height:0; }
label.cat-row:has(input:checked){ border-color: var(--teal); }
.cat-row.is-choice{ gap:16px; }
.cat-row.is-choice .cat-label{ width:auto; flex:1 1 auto; font-size:18px; letter-spacing:0; font-weight:600; }
.rate-stars{ display:flex; gap:8px; align-items:center; }
.rate-stars button{
    appearance:none;
    -webkit-appearance:none;
    width:36px;
    height:36px;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
    line-height:0;
}
.rate-stars svg{ width:36px; height:36px; fill:#e2e5e9; display:block; pointer-events:none; transition: fill .12s ease; }
.rate-stars button.on svg{ fill: var(--teal); }

.form-toast{
    position:fixed;
    top:22px;
    left:50%;
    z-index:90;
    display:flex;
    align-items:center;
    gap:12px;
    max-width:min(520px, calc(100% - 32px));
    width:max-content;
    background:#fff;
    color:#12363a;
    border:1px solid #dce8e8;
    border-left:5px solid #0d6f74;
    box-shadow:0 16px 36px rgba(13,111,116,.18);
    border-radius:14px;
    padding:14px 18px 14px 14px;
    font-family:var(--font);
    font-size:15px;
    font-weight:600;
    line-height:1.4;
    opacity:0;
    transform:translateX(-50%) translateY(-10px);
    pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
}
.form-toast.is-on{
    opacity:1;
    transform:translateX(-50%) translateY(0);
    pointer-events:auto;
}
.form-toast-icon{
    width:32px;
    height:32px;
    border-radius:50%;
    background:#e7f4f4;
    color:#0d6f74;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:700;
    flex-shrink:0;
}
.cat-list.is-invalid .cat-row,
textarea.is-invalid{
    border-color:#c45c5c;
    box-shadow:0 0 0 3px rgba(196,92,92,.12);
}
textarea.is-invalid{ outline:none; }
.rate-stars.is-invalid{
    display:inline-flex;
    padding:8px 10px;
    border-radius:12px;
    border:1px solid #c45c5c;
    box-shadow:0 0 0 3px rgba(196,92,92,.12);
}
.rate-stars:hover button svg{ fill: var(--teal); }
.rate-stars:hover button:hover ~ button svg{ fill:#e2e5e9; }
