/* =====================================================
   Do It For Me – Airco  |  fujiko.doitforme.services
   ===================================================== */

/* --- Variables --- */
:root {
    --primary:   #00b1cf;
    --accent:    #00b1cf;
    --accent-lt: #d0f2f7;
    --white:     #ffffff;
    --gray-lt:   #f4f6f8;
    --gray:      #e0e6ed;
    --text:      #2c3e50;
    --text-muted:#6c7a89;
    --radius:    8px;
    --shadow:    0 2px 12px rgba(0,0,0,.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,.12);
    --transition:0.2s ease;
    --max-w:     760px;
    --max-w-lg:  1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Notice banner --- */
.notice-non-be {
    background: #fef9e7;
    border-bottom: 2px solid #f0b429;
    color: #7d5a00;
    font-size: .875rem;
    text-align: center;
    padding: .65rem 1rem;
}

/* --- Header --- */
.site-header {
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: var(--max-w-lg);
    margin: 0 auto;
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.header-brand img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.01em;
}

.header-brand-tagline {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    font-weight: 400;
}

/* Language switcher */
.lang-switch {
    display: flex;
    gap: .25rem;
    align-items: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    letter-spacing: .02em;
    text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255,255,255,.15);
    color: var(--white);
    text-decoration: none;
}

.lang-btn.active {
    background: rgba(255,255,255,.2);
    color: var(--white);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-position: top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,111,130,.85) 0%, rgba(0,177,207,.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w-lg);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 620px;
}

.hero-content p {
    font-size: 1.05rem;
    max-width: 540px;
    color: rgba(255,255,255,.9);
    margin-bottom: 2rem;
}

/* --- Section layout --- */
.section {
    padding: 3.5rem 1.5rem;
}

.section-inner {
    max-width: var(--max-w-lg);
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.section--gray { background: var(--gray-lt); }

/* --- What to expect grid --- */
.what-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.what-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent);
    transition: transform var(--transition), box-shadow var(--transition);
}

.what-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.what-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.what-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--primary);
}

.what-card p {
    font-size: .9rem;
    color: var(--text-muted);
}

/* --- How it works stepper --- */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    position: relative;
}

.how-step {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.how-step-num {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.how-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .35rem;
}

.how-step p {
    font-size: .875rem;
    color: var(--text-muted);
}

/* --- Legal note --- */
.legal-note {
    background: var(--accent-lt);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    font-size: .9rem;
    color: var(--text-muted);
    margin-top: 2.5rem;
}

/* --- CTA section --- */
.cta-section {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--primary);
    color: var(--white);
}

.cta-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,111,130,.35);
}

.btn-primary:hover {
    background: #005f70;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,111,130,.4);
    text-decoration: none;
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-lt);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Form page layout --- */
.form-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.form-page main {
    flex: 1;
    padding: 2.5rem 1.5rem;
    background: var(--gray-lt);
}

.form-container {
    max-width: var(--max-w);
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-card-header {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.form-card-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

.form-card-body {
    padding: 2rem;
}

/* --- Progress bar --- */
.progress-bar {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.progress-step {
    flex: 1;
    height: 5px;
    background: var(--gray);
    border-radius: 3px;
    margin: 0 2px;
    transition: background var(--transition);
}

.progress-step.done   { background: var(--accent); }
.progress-step.active { background: var(--accent); opacity: .7; }

.progress-label {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
    font-weight: 500;
}

/* --- Form steps --- */
.form-step { display: none; }
.form-step.active { display: block; }

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--gray);
}

/* --- Form fields --- */
.field-group {
    margin-bottom: 1.25rem;
}

.field-group label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .4rem;
}

.field-help {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    height: 48px;
    padding: 0 .875rem;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

textarea {
    height: auto;
    min-height: 110px;
    padding: .75rem .875rem;
    resize: vertical;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c7a89' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46,134,193,.15);
}

input.error,
select.error,
textarea.error {
    border-color: #e74c3c;
}

.error-msg {
    color: #e74c3c;
    font-size: .8rem;
    margin-top: .3rem;
    display: none;
}

.error-msg.visible { display: block; }

.info-msg {
    color: var(--primary);
    font-size: .8rem;
    margin-top: .3rem;
}

/* Unit stepper */
.unit-stepper {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.unit-stepper input[type="number"] {
    width: 80px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.stepper-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--white);
    color: var(--accent);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}

.stepper-btn:hover {
    background: var(--accent);
    color: var(--white);
}

/* Radio cards */
.radio-cards {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    border-radius: var(--radius);
    transition: outline var(--transition);
}

.radio-cards.error {
    outline: 2px solid #e74c3c;
    outline-offset: 3px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1rem;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.radio-card:hover { border-color: var(--accent); background: var(--accent-lt); }

.radio-card input[type="radio"] { width: auto; height: auto; accent-color: var(--accent); }

.radio-card.selected {
    border-color: var(--accent);
    background: var(--accent-lt);
}

.radio-card span { font-size: .95rem; font-weight: 500; }

/* Privacy checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    background: var(--gray-lt);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: .15rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-group label {
    font-size: .875rem;
    color: var(--text);
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
}

.checkbox-group a { color: var(--accent); }

/* --- Form navigation --- */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray);
}

.form-nav .btn-back {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--gray);
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    font-size: .9rem;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}

.form-nav .btn-back:hover {
    background: var(--gray);
    color: var(--text);
}

/* --- Summary (step 4) --- */
.summary-block {
    background: var(--gray-lt);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-block h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .75rem;
    font-weight: 600;
}

.summary-row {
    display: flex;
    gap: .75rem;
    padding: .4rem 0;
    font-size: .9rem;
    border-bottom: 1px solid var(--gray);
}

.summary-row:last-child { border-bottom: none; }
.summary-key { color: var(--text-muted); min-width: 160px; flex-shrink: 0; }
.summary-val { font-weight: 600; color: var(--text); }

/* --- Thank you page --- */
.thanks-container {
    max-width: 540px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

.thanks-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.failure-icon {
    width: 80px;
    height: 80px;
    background: firebrick;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.thanks-container h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.thanks-container p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}


/* --- Scroll hint --- */
.scroll-hint {
    position: fixed;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    /* background: rgba(255,255,255,.22); */
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    /* border: 1px solid rgba(255,255,255,.35); */
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
    z-index: 90;
    animation: scroll-bounce 1.6s ease-in-out infinite;
}

.scroll-hint.visible { opacity: 1; }

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* --- Footer --- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 1.5rem;
    font-size: .85rem;
}

.site-footer a {
    color: rgba(255,255,255,.85);
    text-decoration: underline;
}

.site-footer a:hover { color: var(--white); }

/* --- Error alert --- */
.alert-error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: var(--radius);
    color: #922b21;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
    .form-card-body { padding: 1.25rem; }
    .hero-content { padding: 2.5rem 1rem; }
    .summary-key { min-width: 120px; }
    .how-steps { grid-template-columns: 1fr 1fr; }
    .header-brand-text { display: none; }
}

@media (max-width: 400px) {
    .how-steps { grid-template-columns: 1fr; }
}
