body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--form-bg, #fdfdfd);
    overflow: hidden;
    color: #222;
}
.slide-container {
    width: 100%; height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: 10vh;
}
.slide {
    position: absolute;
    width: 90%; max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px 20px 80px 20px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 1;
    scrollbar-width: thin;
}
.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}
.slide.prev {
    opacity: 0;
    transform: translateY(-100px);
}
.question-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #fff;
}
.input-wrapper input[type="text"], 
.input-wrapper input[type="email"], 
.input-wrapper input[type="tel"], 
.input-wrapper textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    outline: none;
    color: #fff;
    transition: all 0.3s;
}
.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-bottom-color: #fff;
    border-bottom-width: 3px;
}
.btn-next, .btn-submit, .btn-start {
    margin-top: 40px;
    padding: 14px 30px;
    font-size: 1.2rem;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}
.btn-back {
    margin-top: 40px;
    padding: 14px 20px;
    font-size: 1.2rem;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: background 0.2s;
    margin-right: 15px;
}
.btn-next:hover, .btn-submit:hover, .btn-start:hover {
    background: #283593;
    transform: translateY(-2px);
}
.nav-buttons {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
    gap: 15px;
}
.radio-option {
    display: block;
    margin: 10px 0;
    font-size: 1.1rem;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: #333;
}
.radio-option:hover {
    background: #f5f7fb;
    border-color: #1a237e;
}
.radio-option.selected {
    background: #e8eaf6;
    border-color: #1a237e;
    color: #1a237e;
    font-weight: 500;
}
.progress-bar {
    position: fixed;
    top: 0; left: 0; height: 4px;
    background: #1a237e;
    width: 0%;
    transition: width 0.4s ease;
    z-index: 100;
}
.error-msg {
    color: #ff5252;
    font-size: 1rem;
    margin-top: 10px;
    display: none;
    font-weight: 500;
}

/* Summary List Styling */
.summary-list {
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f9;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: #555; font-size: 0.9rem; flex: 1; }
.summary-row .val { color: #1a237e; font-weight: 600; flex: 2; word-break: break-word; }
.summary-row .edit-link { color: #1a237e; font-size: 0.85rem; cursor: pointer; text-decoration: underline; margin-left: 10px; }

/* Split Inputs for Date & Time */
.split-inputs-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.split-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    outline: none;
    padding: 5px 0;
    transition: border-color 0.3s;
}
.split-input:focus {
    border-bottom-color: #fff;
    border-bottom-width: 3px;
}
.split-separator {
    color: #ccc;
    font-size: 1.5rem;
    opacity: 0.7;
}
.split-input.day, .split-input.month, .split-input.hour, .split-input.min { width: 60px; }
.split-input.year { width: 110px; }

/* Typeahead Search Popover */
.search-results-popover {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 2000;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
}
.search-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    font-size: 1.1rem;
    color: #333;
}
.search-item:hover { background: #f5f7fb; }

/* Branding & Footer Fix */
.branding {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
    z-index: 5;
}

.branding a {
    color: #fff;
    text-decoration: underline;
}

@media (max-height: 700px) {
    .slide-container { padding-top: 5vh; }
    .question-text { font-size: 1.5rem; margin-bottom: 20px; }
    .btn-next, .btn-submit, .btn-back { margin-top: 20px; padding: 10px 20px; }
}

/* Prevent browser autofill from disturbing input background, text color, and shape */
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover, 
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper textarea:-webkit-autofill,
.input-wrapper textarea:-webkit-autofill:hover,
.input-wrapper textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000000s ease-in-out 0s !important;
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    border-radius: 0 !important;
}

.input-wrapper input:-webkit-autofill:focus,
.input-wrapper textarea:-webkit-autofill:focus {
    border-bottom: 3px solid #fff !important;
}

/* ── Consent Rows (inside summary-list card) ───────────────────── */
.consent-tc-row {
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
    padding: 10px 20px;
}

.consent-notice-inline {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
}

.consent-notice-inline a {
    color: #1a237e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-notice-inline a:hover {
    color: #283593;
}

.consent-checkbox-row {
    background: #f5f7fb;
    cursor: pointer;
    padding: 10px 20px;
}

.consent-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.consent-checkbox-inline input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #1a237e;
    cursor: pointer;
    flex-shrink: 0;
}


