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

body {
    font-family: 'Open Sans', sans-serif;
    background: #f0f4f8;
    color: #272727;
    min-height: 100vh;
}

.page-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 56px;
}

/* Header */
.header {
    text-align: center;
    padding: 36px 0 20px;
}
.logo {
    height: 54px;
    object-fit: contain;
}

/* Progress */
.progress-wrap {
    background: #d8e3ec;
    border-radius: 4px;
    height: 5px;
    margin: 0 0 6px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: #00adef;
    transition: width 0.4s ease;
}
.step-indicator {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #888;
    text-align: right;
    margin-bottom: 20px;
}

/* Card */
.form-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
    padding: 44px 48px;
}

/* Steps */
.step { display: none; }
.step.active { display: block; }

h2 {
    font-size: 22px;
    font-weight: 700;
    color: #272727;
    margin-bottom: 6px;
}
.step-desc {
    font-size: 14px;
    color: #777;
    margin-bottom: 32px;
    line-height: 1.65;
}

/* Fields */
.field { margin-bottom: 22px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
}
.req { color: #e74c3c; }

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dce3ea;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #272727;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: #00adef;
    background: #fff;
}
input.error, textarea.error {
    border-color: #e74c3c;
    background: #fff8f8;
}
textarea { min-height: 88px; resize: vertical; }

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

/* Section labels */
.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00adef;
    border-bottom: 1.5px solid #e4f4fc;
    padding-bottom: 7px;
    margin: 32px 0 18px;
}

/* Gate questions */
.gate-question {
    background: #f6fafd;
    border: 1.5px solid #daeaf5;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.gate-question.error { border-color: #e74c3c; }

.question-label {
    font-size: 14px;
    font-weight: 600;
    color: #272727;
    line-height: 1.55;
    margin-bottom: 12px;
}
.gate-tag {
    display: inline-block;
    background: #00adef;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 8px;
    vertical-align: middle;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 10px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #444;
}
.radio-option input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: #00adef;
    cursor: pointer;
}
.gate-question textarea {
    margin-top: 6px;
    min-height: 72px;
    background: #fff;
}

/* Model grid */
.model-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.model-card {
    border: 2px solid #dce3ea;
    border-radius: 10px;
    padding: 18px 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    display: block;
    position: relative;
}
.model-card input[type="radio"] { display: none; }
.model-card:hover { border-color: #00adef; }
.model-card.selected {
    border-color: #00adef;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(0,173,239,0.14);
}
.model-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #00adef;
}
.model-title {
    font-size: 15px;
    font-weight: 700;
    color: #272727;
    margin-bottom: 5px;
}
.model-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}
.model-required-note {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 8px;
    display: none;
}
.model-required-note.visible { display: block; }

/* Navigation */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 12px;
}
.btn {
    padding: 13px 30px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-prev {
    background: #eef2f6;
    color: #555;
}
.btn-prev:hover { background: #e0e7ee; }
.btn-next, .btn-submit {
    background: #00adef;
    color: #fff;
    margin-left: auto;
}
.btn-next:hover, .btn-submit:hover {
    background: #009ad5;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,173,239,0.32);
}
.btn-submit { background: #0088c7; }
.btn-submit:hover { background: #007aad; }

/* Footer */
.footer {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 32px;
}

/* Thank you page */
.thankyou-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 16px;
    text-align: center;
}
.check-circle {
    width: 72px;
    height: 72px;
    background: #00adef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 32px;
    color: #fff;
}
.thankyou-wrap h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
}
.thankyou-wrap p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}
.btn-visit {
    display: inline-block;
    margin-top: 28px;
    background: #00adef;
    color: #fff;
    padding: 13px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-visit:hover { background: #009ad5; }

@media (max-width: 620px) {
    .form-card { padding: 28px 22px; }
    .model-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
}
