/* =========================================
   1. BRANDING & BASE
   ========================================= */
:root {
    --primary: #0E7C86;
    /* Deep Teal */
    --primary-dark: #095c63;
    --bg-color: #F4EDE4;
    /* Sandstone Beige */
    --accent: #D47A54;
    /* Terracotta */
    --text-main: #2D2D2D;
    --text-muted: #4B5563;
    --white: #FFFFFF;
    --success: #6EAD8E;
    /* Sage Green */
}

/* Radial gradient overlay for subtle depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.04) 100%);
    pointer-events: none;
    z-index: -1;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Logo Container */
.gp-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0 0;
    background: transparent;
}

.gp-logo {
    max-width: 80px;
    height: auto;
}

/* Hide SurveyJS logo - we use our own */
.sd-logo,
.sd-logo-image,
.sd-header__logo,
.sd-header .sd-logo-image {
    display: none !important;
}

/* Loading State */
.gp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    flex-direction: column;
    gap: 16px;
}

.gp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gp-error {
    text-align: center;
    padding: 40px;
    color: #DC2626;
}


/* =========================================
   2. LINEAR PROGRESS BAR (thin line at top)
   ========================================= */
.gp-linear-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    z-index: 1000;
}

.gp-linear-progress__fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease-out;
}

/* =========================================
   3. HEADER (Step Indicators)
   ========================================= */
.gp-progress-bar {
    background-color: transparent;
    padding: 45px 20px 10px 20px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gp-steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 520px;
    position: relative;
    justify-items: center;
}

/* Single continuous line behind all steps */
.gp-steps-line {
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #D1D5DB;
    z-index: 0;
}

.gp-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.gp-step-icon {
    width: 44px;
    height: 44px;
    background: #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 4px solid transparent;
    box-sizing: border-box;
}

.gp-step-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

.gp-step-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
}

.gp-step.active .gp-step-icon {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.15), 0 3px 8px rgba(14, 124, 134, 0.25);
    border-color: var(--primary);
}

.gp-step.active .gp-step-label {
    color: var(--primary);
}

.gp-step.completed .gp-step-icon {
    background: var(--success);
    color: var(--white);
}

.gp-step.completed .gp-step-label {
    color: var(--success);
}

/* =========================================
   3. MAIN CONTAINER
   ========================================= */
.gp-main-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 40px;
    flex-grow: 1;
}

/* =========================================
   4. FOOTER
   ========================================= */
.gp-footer {
    background-color: transparent;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.gp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.gp-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.gp-footer-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.gp-disclaimer {
    font-size: 11px;
    line-height: 1.6;
    color: #9CA3AF;
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   TRUST BADGES (First Page Only)
   ========================================= */
.gp-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin: 20px auto 0 auto;
    max-width: 400px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gp-trust-badges.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.gp-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.gp-trust-badge svg {
    flex-shrink: 0;
}

.gp-star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gp-star-rating__score {
    background: #F5A623;
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
}

.gp-star-rating__stars {
    display: flex;
    gap: 2px;
}

.gp-star-rating__stars svg {
    width: 14px;
    height: 14px;
    fill: #F5A623;
}

.gp-ssl-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 16px;
    border-left: 1px solid #E5E7EB;
}

.gp-ssl-badge svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

.gp-ssl-badge span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

@media (max-width: 480px) {
    .gp-trust-badges {
        gap: 16px;
        padding: 12px 16px;
    }

    .gp-ssl-badge {
        padding-left: 12px;
    }

    .gp-star-rating__score {
        font-size: 12px;
        padding: 3px 6px;
    }

    .gp-star-rating__stars svg {
        width: 12px;
        height: 12px;
    }
}

/* =========================================
   SKELETON LOADING ANIMATION
   ========================================= */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.gp-skeleton {
    background: linear-gradient(90deg, #e8e0d7 0%, #f0e9e1 50%, #e8e0d7 100%);
    background-size: 200px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.gp-skeleton-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
}

.gp-skeleton-title {
    width: 70%;
    height: 32px;
    border-radius: 6px;
}

.gp-skeleton-button {
    width: 100%;
    max-width: 400px;
    height: 56px;
    border-radius: 12px;
}

.gp-skeleton-badges {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.gp-skeleton-badge {
    width: 80px;
    height: 40px;
    border-radius: 8px;
}

/* =========================================
   PREVENT HORIZONTAL SCROLLING
   ========================================= */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
}

/* Ensure all containers respect viewport */
* {
    box-sizing: border-box !important;
}

/* Constrain main layout containers */
.sd-root-modern,
.sd-body,
.gp-main-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Progress bar - allow sticky behavior */
.gp-progress-bar {
    max-width: 100% !important;
}

/* =========================================
   5. SURVEYJS OVERRIDES
   ========================================= */

.sd-root-modern {
    background: transparent !important;
}

.sd-body {
    background: transparent !important;
}

/* Hide default SurveyJS header — theme sets transparent, but hide entirely since we use custom logo */
.sv-header,
.sd-header,
.sd-container-modern__title {
    display: none !important;
}

/* Transparent backgrounds — theme handles colors, we ensure no grey boxes */
.sd-container-modern,
.sd-body__page {
    background: transparent !important;
}

/* Disable SurveyJS default animations (except page transitions) */
.sd-element,
.sd-question,
.sd-imagepicker,
.sd-imagepicker__item,
.sd-imagepicker__label,
.sd-row,
.sv-components-row {
    animation: none !important;
    animation-duration: 0s !important;
}

/* =========================================
   SMOOTH PAGE TRANSITIONS
   ========================================= */
.sd-body__page,
.sd-page {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
    will-change: opacity, transform;
}

/* Page exiting (sliding left, fading out) */
.sd-body__page.gp-page-exiting,
.sd-page.gp-page-exiting {
    opacity: 0 !important;
    transform: translateX(-30px) !important;
    pointer-events: none !important;
}

/* Page entering (starts offset right, invisible) */
.sd-body__page.gp-page-entering,
.sd-page.gp-page-entering {
    opacity: 0 !important;
    transform: translateX(30px) !important;
}

/* Page visible (final state) */
.sd-body__page.gp-page-visible,
.sd-page.gp-page-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Prevent any height/width animations */
.sd-question__content,
.sd-element__content {
    max-height: none !important;
    overflow: visible !important;
}

/* =========================================
   REMOVE GREY FRAME / FIELDSET BORDER
   ========================================= */
.sd-element--with-frame,
.sd-question--with-frame,
.sd-element,
.sd-question,
.sd-row>div,
fieldset.sd-element {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

legend {
    display: none !important;
}

/* =========================================
   HIDE SURVEYJS BUILT-IN PROGRESS BAR
   ========================================= */
.sd-progress,
.sd-progress-buttons,
.sd-progress-buttons__list,
.sd-progress__bar,
.sd-progress__text,
.sv-progress,
.sv-progress-buttons {
    display: none !important;
}

/* =========================================
   TITLES - Center text (theme handles fonts/colors)
   ========================================= */
.sd-title,
.sd-page__title,
.sd-question__title {
    text-align: center !important;
}
.sd-description,
.sd-question__description,
.sd-page__description {
    text-align: center !important;
}
.sd-question__header {
    text-align: center !important;
}

/* =========================================
   NAVIGATION BUTTONS
   Accent color (terracotta) + pill shape + press states
   Theme handles font-family, font-size, base styling
   ========================================= */

/* All nav buttons: pill shape + tap highlight fix */
.sd-navigation__prev-btn,
.sd-navigation__next-btn,
.sd-navigation__complete-btn {
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out !important;
}

/* Previous button: outlined */
.sd-navigation__prev-btn {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: 1px solid #D1D5DB !important;
}
.sd-navigation__prev-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.sd-navigation__prev-btn:active {
    transform: scale(0.96) !important;
    background: rgba(14, 124, 134, 0.08) !important;
}

/* Next/Complete: terracotta accent */
.sd-navigation__next-btn,
.sd-navigation__complete-btn {
    background: var(--accent) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(212, 122, 84, 0.3) !important;
}
.sd-navigation__next-btn:hover,
.sd-navigation__complete-btn:hover {
    background: #b8623d !important;
}
.sd-navigation__next-btn:active,
.sd-navigation__complete-btn:active {
    transform: scale(0.96) !important;
    box-shadow: 0 2px 6px rgba(212, 122, 84, 0.4) !important;
    background: #c46a45 !important;
}

/* Navigation container */
.sd-body__navigation.sd-action-bar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 30px !important;
    gap: 24px !important;
    overflow: visible !important;
}
.sd-body__navigation .sv-action__content {
    width: auto !important;
    min-width: auto !important;
}

/* Center the question content */
.sd-question__content {
    margin: 0 auto !important;
}

.sd-row {
    display: flex !important;
    justify-content: center !important;
}

/* =========================================
   SUSPENSE LOADER
   ========================================= */
.gp-suspense-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.gp-suspense-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.gp-suspense-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.gp-suspense-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 30px;
}

.gp-suspense-progress {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.gp-suspense-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    animation: suspenseProgress 3s ease-in-out forwards;
}

@keyframes suspenseProgress {
    0% {
        width: 0%;
    }

    20% {
        width: 30%;
    }

    50% {
        width: 60%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

.gp-suspense-steps {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gp-suspense-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    color: var(--text-muted);
    font-size: 15px;
}

.gp-suspense-step.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.gp-suspense-step.completed {
    color: var(--primary);
}

.gp-suspense-step .checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.gp-suspense-step.completed .checkmark {
    background: var(--primary);
    color: white;
}

/* =========================================
   BOOLEAN (TCPA consent) — native SurveyJS boolean
   ========================================= */
.sd-boolean {
    padding: 16px 20px !important;
    background: var(--white) !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 12px !important;
    cursor: pointer !important;
}
.sd-boolean:hover {
    border-color: var(--primary) !important;
}
.sd-boolean--checked {
    background: #F0FDFA !important;
    border-color: var(--primary) !important;
}

/* TCPA consent links (injected via JS) */
.gp-tcpa-link {
    color: var(--primary) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.gp-tcpa-link:hover {
    color: var(--primary-dark) !important;
}

/* =========================================
   IMAGE PICKER - HORIZONTAL CARD STYLE
   ========================================= */

/* Container for all choices */
.sd-imagepicker {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Each choice card */
.sd-imagepicker__item {
    display: block !important;
    width: 100% !important;
    background: var(--white) !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    overflow: hidden !important;
    /* Remove mobile tap highlight */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    /* Smooth transitions for hover and press */
    transition: transform 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out !important;
}

.sd-imagepicker__item:hover {
    border-color: var(--primary) !important;
}

/* Choice card active (press) state */
.sd-imagepicker__item:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Selected state */
.sd-imagepicker__item--checked {
    background-color: #F0FDFA !important;
    border: 2px solid var(--primary) !important;
}

/* Hide default decorators and inputs */
.sd-imagepicker__check-decorator,
.sd-imagepicker__decorator,
.sd-selectbase__decorator,
.sd-imagepicker__item input {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide ALL original imagepicker content - our wrapper shows the content */
.sd-imagepicker__label,
.sd-imagepicker__image-container,
.sd-imagepicker__text,
.sd-imagepicker__image {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* But show our custom wrapper */
.gp-choice-wrapper,
.gp-choice-wrapper img,
.gp-choice-wrapper span {
    position: relative !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Our custom horizontal wrapper (added via JS) */
.gp-choice-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px 20px !important;
}

.gp-choice-wrapper img {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
}

.gp-choice-wrapper span {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
}

/* =========================================
   HIDE TIMER PANEL (for auto-advance pages)
   ========================================= */
.sd-timer,
.sd-timer-panel,
.sv-timerpanel,
[class*="timer-panel"],
[class*="timerpanel"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* =========================================
   MOBILE RESPONSIVE STYLES
   ========================================= */
@media screen and (max-width: 480px) {

    /* Progress Bar - full width, properly aligned */
    .gp-progress-bar {
        padding: 32px 8px 4px 8px !important;
    }

    .gp-steps-container {
        max-width: 100% !important;
        margin: 0 auto !important;
        gap: 0 !important;
    }

    .gp-steps-line {
        left: 12.5% !important;
        right: 12.5% !important;
        top: 18px !important;
    }

    .gp-step-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
        border-width: 3px !important;
        box-sizing: border-box !important;
    }

    .gp-step-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .gp-step-label {
        font-size: 9px !important;
        letter-spacing: 0.3px !important;
    }

    .gp-step {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    /* Reduce active circle shadow to prevent clipping */
    .gp-step.active .gp-step-icon {
        box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.15), 0 3px 8px rgba(14, 124, 134, 0.25) !important;
    }

    /* Logo - centered and compact */
    .gp-logo-container {
        padding: 10px 0 0 0 !important;
        margin-bottom: -10px !important;
    }

    .gp-logo {
        max-width: 55px !important;
    }

    /* Main content - full width, tight */
    .gp-main-container {
        padding: 10px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .sd-body {
        padding-top: 4px !important;
    }

    /* Question titles - readable, wrapped */
    .sd-title,
    .sd-page__title,
    .sd-question__title {
        font-size: 26px !important;
        font-weight: 700 !important;
        padding: 0 4px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Question content - prevent overflow */
    .sd-question__content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }

    /* Footer - very compact */
    .gp-footer {
        padding: 16px 12px 12px 12px !important;
        margin-top: 0 !important;
    }

    .gp-footer-links {
        gap: 10px !important;
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }

    .gp-disclaimer {
        font-size: 9px !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 4px !important;
        line-height: 1.4 !important;
    }

    /* Navigation buttons - compact horizontal, same vertical */
    .sd-navigation__prev-btn,
    .sd-navigation__next-btn,
    .sd-navigation__complete-btn {
        padding: 10px 8px !important;
        font-size: 12px !important;
        margin: 0 !important;
        min-width: 100px !important;
        flex: 1 1 0 !important;
        max-width: 140px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Navigation container - tight and centered */
    .sd-action-bar,
    .sd-body__navigation,
    .sd-footer {
        margin-top: 12px !important;
        gap: 12px !important;
        padding: 0 10px !important;
        justify-content: center !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Choice cards - full width */
    .gp-choice-wrapper {
        padding: 12px 12px !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .gp-choice-wrapper img {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }

    .gp-choice-wrapper span {
        font-size: 14px !important;
        word-wrap: break-word !important;
    }

}

/* Tablet portrait (481-600px) */
@media screen and (min-width: 481px) and (max-width: 600px) {
    .gp-steps-container {
        max-width: 95% !important;
    }

    .gp-steps-line {
        left: 12.5% !important;
        right: 12.5% !important;
        top: 20px !important;
    }

    .gp-step-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .gp-step-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .gp-step-label {
        font-size: 9px !important;
    }

    .gp-main-container {
        padding: 14px !important;
        max-width: 95% !important;
    }

    .sd-action-bar {
        margin-top: 16px !important;
    }

    .gp-footer {
        padding: 20px 16px !important;
    }

    .gp-footer-links {
        gap: 16px !important;
        font-size: 11px !important;
    }

    .sd-navigation__prev-btn,
    .sd-navigation__next-btn,
    .sd-navigation__complete-btn {
        padding: 12px 28px !important;
        font-size: 14px !important;
    }
}

/* Small tablet (601-768px) */
@media screen and (min-width: 601px) and (max-width: 768px) {
    .gp-steps-container {
        max-width: 85% !important;
    }

    .gp-steps-line {
        left: 12.5% !important;
        right: 12.5% !important;
        top: 22px !important;
    }

    .gp-main-container {
        max-width: 90% !important;
    }
}

/* Landscape phone or very narrow window (max-height: 500px) */
@media screen and (max-height: 500px) {
    .gp-progress-bar {
        padding: 6px 12px 2px 12px !important;
    }

    .gp-footer {
        padding: 10px 12px !important;
    }

    .gp-footer-links {
        margin-bottom: 4px !important;
        gap: 8px !important;
    }

    .gp-disclaimer {
        font-size: 8px !important;
        line-height: 1.3 !important;
    }

    .sd-action-bar {
        margin-top: 8px !important;
        gap: 6px !important;
    }

    .gp-main-container {
        padding: 8px !important;
    }
}

/* Desktop (769px+) */
@media screen and (min-width: 769px) {
    .gp-progress-bar {
        padding: 20px 20px 10px 20px;
    }

    .gp-steps-container {
        max-width: 520px;
    }

    .gp-steps-line {
        left: 12.5%;
        right: 12.5%;
        top: 22px;
    }
}
