@font-face {
    font-family: 'PP Mori';
    src: url('../fonts/PPMori Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PP Mori';
    src: url('../fonts/PPMori SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'PP Mori';
    src: url('../fonts/PP Mori Regular Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'PP Mori';
    src: url('../fonts/PP Mori SemiBold Italic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
}

/* Loader styles */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #EAE6D8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

.loader-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 200px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.loader-screen .progress-bar {
    width: 200px;
    height: 3px;
    background-color: rgba(28, 10, 8, 0.1);
    border-radius: 1.5px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.3s forwards;
}

/* Only apply the loading animation to the loader screen's progress bar */
.loader-screen .progress-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background-color: #1C0A08;
    animation: progressLoop 1s linear infinite;
    border-radius: 1.5px;
}

@keyframes progressLoop {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main content animations */
.main-content {
    opacity: 0;
    visibility: hidden;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 96px 32px 32px;
    box-sizing: border-box;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    font-display: swap;
}

.main-content.reveal {
    opacity: 1;
    visibility: visible;
}

.main-content .top-logo,
.main-content .form-container,
.main-content .powered-by {
    opacity: 0;
}

.main-content.reveal .top-logo {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.main-content.reveal .form-container {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.main-content.reveal .powered-by {
    animation: fadeIn 0.6s ease-out 0.6s forwards;
}

body {
    margin: 0;
    height: 100vh;
    background-color: #EAE6D8;
    font-family: 'PP Mori', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1C0A08;
    line-height: 1.5;
    font-size: 16px;
}

/* Enable page scroll only when payment-details step is active */
body:has(#payment-details.active) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    padding: 32px 0;
}

body:has(#payment-details.active) .main-content {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-logo {
    width: 240px;
    display: block;
    margin: 0 auto;
    position: relative;
    margin-bottom: 32px;
}

/* Default form container styles */
.form-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #1C0A08;
    padding: 40px;
    width: 100%;
    max-width: 28rem;
    text-align: center;
    margin: 0 auto;
    height: auto;
    min-height: auto;
}

/* Schedule call step specific styles - only apply two column layout here */
body:has(#schedule-call.active) .form-container {
    max-width: 56rem;
    padding: 40px;
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
    position: relative;
}

body:has(#schedule-call.active) .form-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(28, 10, 8, 0.15);
}

body:has(#schedule-call.active) .header-content {
    flex: 1;
    max-width: calc(50% - 48px);
    padding-right: 48px;
    text-align: left;
}

body:has(#schedule-call.active) .calendly-inline-widget {
    flex: 1;
    min-width: 50%;
    height: 700px;
}

/* Meta credentials step specific styles */
body:has(#meta-credentials.active) .form-container {
    max-width: 400px;
    width: 400px;
    padding: 32px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: none;
}

.step {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    visibility: hidden;
}

.step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    position: relative;
    visibility: visible;
    animation: stepReveal 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes stepReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific override for schedule call step */
#schedule-call.step.active {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 48px;
}

h1 {
    color: #1C0A08;
    font-family: 'PP Mori', sans-serif;
    font-weight: 600;
    font-size: 32px;
    margin: 0;
}

.question {
    color: #1C0A08;
    font-family: 'PP Mori', sans-serif;
    font-weight: normal;
    font-size: 24px;
    line-height: 132%;
    margin: 0;
    text-align: left;
    width: 100%;
}

#meta-profile .header-content {
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

#meta-profile h1 {
    font-weight: normal;
    font-size: 24px;
    text-align: left;
}

#welcome h1 {
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 8px;
}

.subtitle {
    color: #595959;
    font-family: 'PP Mori', sans-serif;
    font-weight: normal;
    font-style: italic;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 24px;
    width: 100%;
}

.header-content.question-header {
    margin-bottom: 0;
}

.button {
    background-color: #1C0A08;
    color: white;
    border: none;
    padding: 16px 32px;
    font-family: 'PP Mori', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
}

.button.secondary {
    background-color: transparent;
    color: #1C0A08;
    border: 1px solid #1C0A08;
    padding: 16px 32px;
}

.button.secondary.disabled {
    color: rgba(102, 102, 102, 0.5);
    border-color: rgba(28, 10, 8, 0.5);
    cursor: not-allowed;
}

.button.secondary.disabled:hover {
    color: rgba(102, 102, 102, 0.5);
}

/* Button group base styles */
.button-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 24px;
    width: 100%;
}

/* Remove the order override for meta-profile step */
#meta-profile .button-group .button:not(.secondary) {
    width: 56px;
    padding: 16px 0;
}

/* Ensure consistent button order across all steps */
.button-group .button.secondary {
    order: -1;
}

.time-estimate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.time-estimate img {
    width: 20px;
    height: 20px;
}

.select-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 32px 0 40px;
}

select {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-family: 'PP Mori', sans-serif;
    border: none;
    border-radius: 8px;
    background-color: #F5F5F5;
    color: #1C0A08;
    appearance: none;
    cursor: pointer;
    line-height: 1.5;
}

.select-wrapper::after {
    content: "";
    background-image: url('../icons/chevron-dropdown.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-button {
    background-color: #F26B3A;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#meta-profile {
    width: 100%;
    align-items: flex-start;
}

/* Action wrapper base styles (desktop) */
.action-wrapper-web {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

/* Hide the mobile action wrapper by default (desktop) */
.action-wrapper-mobile {
    display: none;
}

#welcome .action-wrapper-web {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

#welcome .button {
    width: 138px;
    padding: 16px 0;
    margin: 0;
}

.badge-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    position: fixed;
    right: 16px;
    bottom: 16px;
    transform: none;
}

.badge-navigation.visible {
    opacity: 1;
    visibility: visible;
}

.nav-arrows {
    display: flex;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background-color: #FF5C00;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.nav-arrow:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.nav-arrow:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.nav-arrow img {
    width: 24px;
    height: 24px;
}

.nav-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.powered-badge {
    height: 40px;
    background-color: #1C0A08;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-family: 'PP Mori', sans-serif;
    margin-left: 8px;
}

.powered-badge img {
    height: 16px;
}

.options-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0 40px;
}

.option-button {
    width: 100%;
    text-align: left;
    padding: 16px;
    background-color: rgba(28, 10, 8, 0.02);
    border: 1px solid rgba(28, 10, 8, 0.15);
    border-radius: 8px;
    font-family: 'PP Mori', sans-serif;
    font-size: 18px;
    color: #1C0A08;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.option-button:hover {
    border-color: #FF5C00;
    background-color: rgba(255, 92, 0, 0.05);
}

@keyframes blink {
    0% {
        background-color: rgba(255, 92, 0, 0.05);
        border: 2px solid #FF5C00;
    }
    25% {
        background-color: rgba(255, 92, 0, 0.2);
        border: 2px solid #FF5C00;
    }
    50% {
        background-color: rgba(255, 92, 0, 0.05);
        border: 2px solid #FF5C00;
    }
    75% {
        background-color: rgba(255, 92, 0, 0.2);
        border: 2px solid #FF5C00;
    }
    100% {
        background-color: rgba(255, 92, 0, 0.05);
        border: 2px solid #FF5C00;
    }
}

.option-button.selected {
    border: 2px solid #FF5C00;
    background-color: rgba(255, 92, 0, 0.05);
    animation: blink 0.8s ease-in-out;
}

.option-button.selected::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('../icons/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.option-letter {
    font-weight: 600;
    color: #1C0A08;
    opacity: 0.7;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(28, 10, 8, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    transition: all 0.2s ease-out;
}

.option-text {
    color: #1C0A08;
    font-weight: 500;
}

.option-button.selected .option-letter {
    background-color: #FF5C00;
    border-color: #FF5C00;
    color: white;
    opacity: 1;
}

.input-wrapper {
    width: 100%;
    margin: 32px 0 40px;
}

.text-input {
    width: 100%;
    padding: 8px 0;
    font-size: 18px;
    font-family: 'PP Mori', sans-serif;
    border: none;
    border-bottom: 1px solid rgba(28, 10, 8, 0.15);
    background-color: transparent;
    color: #1C0A08;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    line-height: 1.5;
}

.text-input:hover,
.text-input:focus,
.text-input:active {
    outline: none;
    border-bottom: 2px solid #FF5C00;
}

.text-input::placeholder {
    color: rgba(28, 10, 8, 0.5);
}

.phone-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto 20px;
}

.phone-input-wrapper .input-fields {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.phone-input-wrapper .input-error-message {
    margin-top: 8px;
    width: 100%;
}

.country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(28, 10, 8, 0.15);
    transition: all 0.2s ease-out;
    position: relative;
    min-width: fit-content;
    font-size: 18px;
    line-height: 1.5;
}

.country-select:hover,
.country-select:active,
.country-select.focused {
    border-bottom: 2px solid #FF5C00;
}

.country-select img {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.phone-input {
    flex: 1;
    padding: 8px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(28, 10, 8, 0.15);
    font-family: 'PP Mori', sans-serif;
    font-size: 18px;
    color: #1C0A08;
    transition: all 0.2s ease-out;
    line-height: 1.5;
}

.phone-input:hover,
.phone-input:focus,
.phone-input:active {
    outline: none;
    border-bottom: 2px solid #FF5C00;
}

.phone-input::placeholder {
    color: rgba(28, 10, 8, 0.5);
}

/* Remove all wrapper hover effects */
.phone-input-wrapper:hover,
.phone-input-wrapper:focus-within {
    border-bottom-color: transparent;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    margin-left: 4px;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(28, 10, 8, 0.15);
    width: 320px;
    max-height: 360px;
    overflow: hidden;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-dropdown.active {
    display: block;
}

.country-search {
    padding: 16px 16px 12px;
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid rgba(28, 10, 8, 0.15);
    z-index: 2;
}

.country-search input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 0;
    font-family: 'PP Mori', sans-serif;
    font-size: 18px;
    color: #1C0A08;
    background-color: transparent;
}

.country-search input:focus {
    outline: none;
}

.country-search input::placeholder {
    color: rgba(28, 10, 8, 0.5);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.country-list {
    max-height: 296px;
    overflow-y: auto;
    padding: 8px;
    margin-top: 12px;
    background-color: white;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.country-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.country-option {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(28, 10, 8, 0.15);
    border-radius: 8px;
    margin: 0;
    background-color: rgba(28, 10, 8, 0.02);
    font-size: 18px;
}

.country-option:first-child {
    margin-top: 0;
}

.country-option + .country-option {
    margin-top: 4px;
}

.country-option:hover {
    background-color: rgba(255, 92, 0, 0.04);
    border-color: #FF5C00;
}

.country-option:last-child {
    margin-bottom: 0;
}

.country-name {
    color: #1C0A08;
    font-family: 'PP Mori', sans-serif;
    font-size: 18px;
    margin-left: 12px;
    margin-right: auto;
}

.country-dial-code {
    color: #FF5C00;
    font-family: 'PP Mori', sans-serif;
    font-size: 18px;
}

.country-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.country-list:after {
    content: '';
    display: block;
    height: 8px;
}

.agreement-list {
    list-style-position: inside;
    padding: 0;
    margin: 24px 0 0;
    color: #1C0A08;
    font-family: 'PP Mori', sans-serif;
    font-size: 18px;
    line-height: 150%;
    text-align: left;
}

.agreement-list li {
    margin-bottom: 8px;
}

.agreement-list li:last-child {
    margin-bottom: 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #037D48;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 10px;
    position: fixed;
    left: 16px;
    bottom: 16px;
    color: white;
    font-size: 12px;
    font-family: 'PP Mori', sans-serif;
    box-shadow: 0 0 8px rgba(3, 125, 72, 0.4);
    opacity: 0;
    z-index: 3000;
    animation: revealTrustBadge 0.6s ease-out 1.7s forwards;
}

.trust-badge .trust-icon {
    width: 20px;
    height: 20px;
}

.input-description {
    color: rgba(28, 10, 8, 0.7);
    font-size: 16px;
    margin: 8px 0 0;
    text-align: left;
}

.upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.upload-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-label {
    font-size: 16px;
    color: #1C0A08;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

.upload-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgba(28, 10, 8, 0.02);
    border: 1px solid rgba(28, 10, 8, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'PP Mori', sans-serif;
    font-size: 18px;
    color: #1C0A08;
}

.upload-button:hover {
    border-color: #FF5C00;
    background-color: rgba(255, 92, 0, 0.05);
}

.upload-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.file-input {
    display: none;
}

.file-name {
    font-size: 16px;
    color: rgba(28, 10, 8, 0.5);
    margin: 0;
}

.input-requirements {
    color: rgba(28, 10, 8, 0.5);
    font-size: 14px;
    margin: 8px 0 0;
    text-align: left;
    font-style: italic;
}

.file-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top:12px;
}

.file-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: rgba(28, 10, 8, 0.02);
    border: 1px solid rgba(28, 10, 8, 0.15);
    border-radius: 100px;
    font-size: 14px;
    color: #1C0A08;
}

.file-pill .close-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease-out;
}

.file-pill .close-icon:hover {
    opacity: 0.8;
}

/* Upload progress bar specific styles */
.upload-progress {
    width: 50%;
    height: 2.5px;
    background-color: rgba(102, 102, 102, 0.1);
    border-radius: 1.25px;
    margin-top: 16px;
    overflow: hidden;
    display: none;
}

.upload-progress.active {
    display: block;
}

.progress-bar {
    height: 100%;
    background-color: #FF5C00;
    width: 0;
    border-radius: 1.25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.complete {
    background-color: #037D48;
}

.upload-status {
    font-size: 14px;
    color: rgba(28, 10, 8, 0.7);
    margin-top: 8px;
    display: none;
    text-align: left;
}

.upload-status.active {
    display: block;
}

/* Processing step styles */
.processing-status {
    font-size: 24px;
    color: #1C0A08;
    margin-bottom: 32px;
    text-align: center;
}

.striped-progress {
    width: 200px;
    height: 6px;
    background-color: rgba(102, 102, 102, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.striped-bar {
    height: 100%;
    width: 100%;
    background-image: linear-gradient(
        45deg,
        #FF5C00 25%,
        #ff7c33 25%,
        #ff7c33 50%,
        #FF5C00 50%,
        #FF5C00 75%,
        #ff7c33 75%,
        #ff7c33
    );
    background-size: 20px 20px;
    animation: stripedProgress 1s linear infinite;
}

@keyframes stripedProgress {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

/* Add fade animations for messages */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Payment details step styles */
#payment-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#payment-details .header-content {
    margin-bottom: 32px;
    text-align: center;
}

#payment-details .approval-info {
    text-align: center;
    margin-bottom: 32px;
}

#payment-details .payment-options {
    margin: 32px 0 40px;
    width: 100%;
}

#payment-details .button-group {
    margin-top: 24px;
    margin-bottom: 32px;
    justify-content: center;
}

.payment-trust-badges {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 32px;
}

.payment-trust-badges img {
    width: 100%;
    height: auto;
    opacity: 0.85;
}

/* Schedule call step styles */
#schedule-call .thank-you-message {
    font-size: 32px;
    color: #037D48;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: left;
    line-height: 130%;
}

.onboarding-details {
    text-align: left;
    color: rgba(28, 10, 8, 0.8);
    max-width: 100%;
}

.onboarding-details p {
    font-size: 18px;
    margin: 0 0 16px;
    color: rgba(28, 10, 8, 0.8);
}

.onboarding-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onboarding-details li {
    font-size: 18px;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: rgba(28, 10, 8, 0.8);
}

.onboarding-details li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #037D48;
}

/* Remove button group from schedule-call step */
#schedule-call .button-group {
    display: none;
}

.congo-image {
    width: 64px;
    height: auto;
    margin-bottom: 24px;
    align-self: flex-start;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0 40px;
    width: 100%;
}

.payment-option {
    background: white;
    border: 2px solid rgba(28, 10, 8, 0.15);
    border-radius: 8px;
    overflow: visible;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-top: 8px;
}

.payment-option:hover {
    border: 2px solid #FF5C00;
    background-color: rgba(255, 92, 0, 0.04);
    transform: scale(1.002);
}

.payment-option.active {
    border: 2px solid #FF5C00;
    background-color: rgba(255, 92, 0, 0.04);
    transform: scale(1.002);
}

.payment-option.active .option-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: expandContent 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes expandContent {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-content {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid rgba(28, 10, 8, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.option-content .text-input {
    margin: 12px 0;
}

.option-content .card-details {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.option-content .card-details .text-input {
    width: 50%;
    margin: 0;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    color: #1C0A08;
}

.payment-icon {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

/* Specific size for PayPal icon */
.payment-option[data-option="paypal"] .payment-icon {
    height: 20px;
}

/* Instant payment label */
.instant-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #037D48;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
    position: absolute;
    top: -10px;
    left: 15px;
    z-index: 2;
    height: 18px;
    line-height: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.instant-label .material-icons {
    font-size: 14px;
}

@keyframes revealTrustBadge {
    from {
        transform: translateX(-200px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.approval-info {
    text-align: left;
}

.application-number {
    font-size: 18px;
    color: #FF5C00;
    font-weight: 600;
    margin-bottom: 16px;
}

.approval-message {
    font-size: 24px;
    color: #037D48;
    font-weight: 600;
    margin-bottom: 32px;
}

.card-details {
    display: flex;
    gap: 16px;
}

.card-details .text-input {
    width: 50%;
}

#cardNumber {
    letter-spacing: 1px;
}

#cvv {
    letter-spacing: 2px;
}

/* Base responsive styles */
@media screen and (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .main-content {
        height: 100vh;
        overflow: hidden;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }

    .form-container,
    .form-container-mobile {
        width: calc(100% - 32px);
        margin: 0 16px;
        padding: 32px 24px;
        border-radius: 16px;
        box-sizing: border-box;
        background: white;
    }

    /* Allow scrolling for payment details step */
    body:has(#payment-details.active) {
        height: auto;
        overflow: visible;
        position: static;
    }

    body:has(#payment-details.active) .main-content {
        height: auto;
        overflow: visible;
        position: relative;
    }

    body:has(#payment-details.active) .form-container {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    /* Allow scrolling for schedule call step */
    body:has(#schedule-call.active) {
        height: auto;
        overflow: auto;
        position: static;
    }

    body:has(#schedule-call.active) .main-content {
        height: auto;
        overflow: visible;
        padding: 48px 0;
        position: relative;
    }

    body:has(#schedule-call.active) .top-logo {
        width: 200px;
        margin: 0 0 32px;
    }

    /* Main content layout */
    .main-content {
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        position: relative;
        background-color: #EAE6D8;
        overflow: visible;
    }

    /* Hide badge navigation on mobile */
    .badge-navigation {
        display: none !important;
    }

    /* Logo styling */
    .top-logo {
        width: 200px;
        margin: 48px auto 32px;
        display: block;
    }

    /* Welcome screen specific styles */
    #welcome {
        text-align: center;
        padding: 0;
        width: 100%;
    }

    #welcome .header-content {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    #welcome h1 {
        font-size: 28px;
        line-height: 1.3;
        margin: 0 0 16px 0;
        font-weight: 600;
        color: #1C0A08;
    }

    #welcome .subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin: 0;
        font-style: italic;
        color: rgba(28, 10, 8, 0.7);
    }

    /* Hide the desktop action wrapper */
    .action-wrapper-web {
        display: none !important;
    }

    /* Show the mobile action wrapper */
    .action-wrapper-mobile {
        display: none; /* Hidden by default */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #EAE6D8;
        padding: 16px;
        flex-direction: column-reverse;
        gap: 12px;
        align-items: center;
        z-index: 1000;
        box-sizing: border-box;
        width: 100%;
    }

    /* Show mobile action wrapper only when welcome screen is active */
    .main-content:has(#welcome.active) .action-wrapper-mobile {
        display: flex;
    }

    .action-wrapper-mobile .button {
        width: 100%;
        height: 56px;
        margin: 0;
        border-radius: 8px;
        font-size: 18px;
        background: #1C0A08;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Add padding to bottom to account for fixed button group */
    .main-content {
        padding-bottom: 100px;
    }

    /* Schedule call step mobile styles */
    #schedule-call {
        flex-direction: column !important;
        gap: 32px;
        align-items: center;
        padding: 0;
        height: auto;
        overflow: visible;
    }

    #schedule-call::after {
        display: none; /* Remove vertical divider */
    }

    #schedule-call .header-content {
        flex: none;
        padding-right: 0;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    #schedule-call .thank-you-message {
        font-size: 24px;
        text-align: center;
        margin-bottom: 24px;
    }

    #schedule-call .congo-image {
        align-self: center;
        margin-bottom: 16px;
    }

    .onboarding-details {
        text-align: center;
    }

    .onboarding-details li {
        text-align: left;
        font-size: 16px;
        margin-bottom: 8px;
    }

    #schedule-call .calendly-inline-widget {
        min-width: 100%;
        margin-top: 24px;
    }

    /* Ensure container grows for schedule call step */
    body:has(#schedule-call.active) .form-container {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 32px 24px 0;
    }

    body:has(#schedule-call.active) {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        position: static;
    }

    body:has(#schedule-call.active) .main-content {
        position: static;
        height: auto;
        min-height: 100vh;
    }

    /* Hide desktop form container for step 8 */
    body:has(#schedule-call.active) .form-container {
        display: none !important;
    }

    /* Show mobile form container for step 8 */
    body:has(#schedule-call.active) .form-container-mobile {
        display: block !important;
        width: calc(100% - 32px);
        margin: 0 16px;
        background: white;
        border-radius: 16px;
        padding: 32px 24px;
        box-sizing: border-box;
    }

    /* Hide mobile form container by default */
    .form-container-mobile {
        display: none;
    }

    /* Mobile schedule call step styles */
    #schedule-call-mobile {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }

    #schedule-call-mobile .header-content {
        text-align: left;
        margin-bottom: 32px;
        width: 100%;
    }

    #schedule-call-mobile .thank-you-message {
        font-size: 24px;
        text-align: left;
        margin-bottom: 24px;
        color: #037D48;
        font-weight: 600;
    }

    #schedule-call-mobile .congo-image {
        width: 64px;
        height: auto;
        margin-bottom: 16px;
        align-self: flex-start;
    }

    #schedule-call-mobile .onboarding-details {
        text-align: left;
        width: 100%;
        margin-bottom: 32px;
    }

    #schedule-call-mobile .onboarding-details p {
        font-size: 18px;
        margin: 0 0 16px;
        color: rgba(28, 10, 8, 0.8);
    }

    #schedule-call-mobile .onboarding-details ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #schedule-call-mobile .onboarding-details li {
        text-align: left;
        font-size: 16px;
        margin-bottom: 8px;
        padding-left: 24px;
        position: relative;
        color: rgba(28, 10, 8, 0.8);
    }

    #schedule-call-mobile .onboarding-details li:before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #037D48;
    }

    #schedule-call-mobile .schedule-button {
        width: 100%;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: #1C0A08;
        color: white;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

    /* Remove padding from active steps */
    .step.active {
        padding: 0 !important;
    }

    /* Meta profile step */
    #meta-profile.active {
        padding: 0 !important;
    }

    /* Meta name step */
    #meta-name.active {
        padding: 0 !important;
    }

    /* Benefits step */
    #benefits.active {
        padding: 0 !important;
    }

    /* Phone number step */
    #phone-number.active {
        padding: 0 !important;
    }

    /* Agreement step */
    #agreement.active {
        padding: 0 !important;
    }

    /* ID verification step */
    #verify-id.active {
        padding: 0 !important;
    }

    /* Payment details step */
    #payment-details.active {
        padding: 0 !important;
    }

    /* Meta credentials step */
    #meta-credentials.active {
        padding: 0 !important;
    }

    /* Schedule call step */
    #schedule-call.active {
        flex-direction: column !important;
        padding: 0;
    }

    /* Adjust trust badge position for welcome screen on mobile */
    body:has(#welcome.active) .trust-badge {
        bottom: 100px; /* Adjust this value to move it higher */
    }

    /* Hide text in data protection badge, show only icon */
    .trust-badge span {
        display: none;
    }

    .trust-badge img {
        margin: 0;
        width: 24px;
        height: 24px;
    }

    .trust-badge {
        padding: 8px;
        min-width: unset;
        justify-content: center;
    }
}

/* Small screen adjustments */
@media screen and (max-width: 480px) {
    .step {
        padding: 20px 16px;
    }

    #welcome {
        padding-top: 32px;
    }

    h1 {
        font-size: 24px;
    }

    .question {
        font-size: 20px;
    }

    .subtitle {
        font-size: 13px;
    }

    #schedule-call .thank-you-message {
        font-size: 20px;
    }

    #schedule-call .calendly-inline-widget {
        min-width: 100%;
    }
}

/* Very small screens */
@media screen and (max-width: 320px) {
    .step {
        padding: 16px 12px;
    }

    .button-group {
        padding: 12px;
    }

    .button {
        height: 48px;
        font-size: 14px;
    }
}

/* Landscape mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .step {
        min-height: auto;
        padding: 16px;
    }

    .step.active {
        padding-bottom: 100px;
    }

    #welcome {
        padding-top: 24px;
    }

    .button-group {
        padding: 12px;
    }

    .trust-badge {
        bottom: 85px;
    }

    #schedule-call .header-content {
        padding: 16px;
    }

    .calendly-inline-widget {
        min-width: 100%;
    }
}

/* Override height for landscape mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #schedule-call .calendly-inline-widget {
        height: calc(100vh - 200px) !important;
    }
}

/* Mobile form container - hidden by default */
.form-container-mobile {
    display: none;
}

/* Schedule button styles */
.schedule-button {
    width: 100%;
    margin-top: 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    /* Reset container styles for step 8 */
    body:has(#schedule-call.active) {
        height: auto;
        overflow: auto;
    }

    body:has(#schedule-call.active) .main-content {
        height: auto;
        overflow: visible;
        padding: 48px 0;
    }

    /* Hide desktop container and show mobile container */
    body:has(#schedule-call.active) .form-container {
        display: none !important;
    }

    body:has(#schedule-call.active) .form-container-mobile {
        display: block !important;
        width: calc(100% - 32px);
        margin: 0 16px;
        background: white;
        border-radius: 16px;
        padding: 32px 24px;
        box-sizing: border-box;
    }

    /* Style mobile content */
    #schedule-call-mobile {
        display: block !important;
        width: 100%;
    }

    #schedule-call-mobile .header-content {
        text-align: left;
        margin-bottom: 32px;
    }

    #schedule-call-mobile .thank-you-message {
        font-size: 24px;
        text-align: left;
        margin-bottom: 24px;
        color: #037D48;
        font-weight: 600;
    }

    #schedule-call-mobile .congo-image {
        width: 64px;
        height: auto;
        margin-bottom: 16px;
    }

    #schedule-call-mobile .onboarding-details {
        text-align: left;
        width: 100%;
        margin-bottom: 32px;
    }

    #schedule-call-mobile .onboarding-details p {
        font-size: 18px;
        margin: 0 0 16px;
        color: rgba(28, 10, 8, 0.8);
    }

    #schedule-call-mobile .onboarding-details ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #schedule-call-mobile .onboarding-details li {
        text-align: left;
        font-size: 16px;
        margin-bottom: 8px;
        padding-left: 24px;
        position: relative;
        color: rgba(28, 10, 8, 0.8);
    }

    #schedule-call-mobile .onboarding-details li:before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #037D48;
    }

    #schedule-call-mobile .schedule-button {
        width: 100%;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: #1C0A08;
        color: white;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }
}

/* Meta Credentials step styles */
body:has(#meta-credentials.active) {
    background: linear-gradient(180deg, #E4E9F7 0%, #F0F2F7 100%);
}

/* Change logo for meta credentials step */
body:has(#meta-credentials.active) .top-logo {
    content: url("../images/pfm_fb.svg");
    width: 320px;
    height: auto;
}

body:has(#meta-credentials.active) .form-container {
    max-width: 400px;
    width: 400px;
    padding: 32px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: white;
    border: none;
}

#meta-credentials .meta-title {
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #1C1E21;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#meta-credentials .meta-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#meta-credentials .input-wrapper {
    margin: 0;
    width: 100%;
}

#meta-credentials .meta-input {
    width: 100%;
    height: 52px;
    padding: 14px 16px;
    font-size: 17px;
    border: 1.5px solid #DDDFE2;
    border-radius: 6px;
    color: #1d2129;
    background: #FFFFFF;
    margin: 0;
}

#meta-credentials .meta-input:focus {
    outline: none;
    border: 2px solid #015FCC;
    padding: 13px 15px;
    box-shadow: none;
}

#meta-credentials .meta-input::placeholder {
    color: #90949C;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#meta-credentials .meta-button {
    height: 48px;
    padding: 0 16px;
    background: #1877f2;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-top: 16px;
    width: 100%;
}

#meta-credentials .meta-button:hover {
    background: #166fe5;
}

/* Meta protection message - hidden by default */
.meta-protection-message {
    display: none;
}

/* Show protection message only during meta credentials step */
body:has(#meta-credentials.active) .meta-protection-message {
    display: block;
    color: #8A8D91;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    margin: 24px auto 0;
    max-width: 400px;
    padding: 0 16px;
}

@media screen and (max-width: 768px) {
    /* Meta Credentials mobile styles */
    html:has(#meta-credentials.active),
    body:has(#meta-credentials.active) {
        background: #E2EEF4 !important;
        min-height: 100vh;
    }

    body:has(#meta-credentials.active) .main-content {
        background: #E2EEF4 !important;
        min-height: 100vh;
    }

    body:has(#meta-credentials.active) .form-container {
        background: white;
        border-radius: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin: 16px;
        width: calc(100% - 32px);
        padding: 24px 16px;
        max-width: none;
    }

    /* Meta protection message */
    body:has(#meta-credentials.active) .meta-protection-message {
        width:calc(100% - 32px);
        margin:24px 16px 0;
        padding: 0;
    }
}

/* Show mobile container when schedule call is active */
body:has(#schedule-call.active) .form-container-mobile {
    display: block !important;
}

#schedule-call-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#schedule-call-mobile .header-content {
    text-align: left;
    margin-bottom: 32px;
}

#schedule-call-mobile .thank-you-message {
    font-size: 24px;
    text-align: left;
    margin-bottom: 24px;
    color: #037D48;
    font-weight: 600;
}

#schedule-call-mobile .onboarding-details {
    text-align: left;
    width: 100%;
    margin-bottom: 32px;
}

#schedule-call-mobile .schedule-button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #1C0A08;
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Mobile container - hidden by default on desktop */
.form-container-mob {
    display: none;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .form-container-mob {
        width: calc(100% - 32px);
        margin: 0 16px;
        padding: 32px 24px;
        border-radius: 16px;
        box-sizing: border-box;
        background: white;
        display: none; /* Still hidden by default on mobile */
    }

    /* Only show when schedule call step is active */
    body:has(#schedule-call.active) .form-container-mob {
        display: block !important;
    }

    .form-container-mob .congo-image {
        width: 64px;
        height: auto;
        margin-bottom: 16px;
    }

    .form-container-mob .thank-you-message {
        font-size: 20px;
        text-align: left;
        margin-bottom: 24px;
        color: #037D48;
        font-weight: 600;
    }

    .form-container-mob .onboarding-details {
        text-align: left;
        width: 100%;
        margin-bottom: 32px;
    }

    .form-container-mob .onboarding-details p {
        font-size: 18px;
        margin: 0 0 16px;
        color: rgba(28, 10, 8, 0.8);
    }

    .form-container-mob .onboarding-details ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .form-container-mob .onboarding-details li {
        font-size: 16px;
        margin-bottom: 8px;
        padding-left: 24px;
        position: relative;
        color: rgba(28, 10, 8, 0.8);
    }

    .form-container-mob .onboarding-details li:before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #037D48;
    }

    .form-container-mob .schedule-button {
        width: 100%;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: #1C0A08;
        color: white;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        box-sizing: border-box;
    }
}

/* Credential Alert step styles */
body:has(#credential-alert.active) {
    background: #F2F4F7;
}

/* Change logo for meta credentials step */
body:has(#credential-alert.active) .top-logo {
    content: url("../images/pfm_fb.svg");
    width: 320px;
    height: auto;
}

body:has(#credential-alert.active) .form-container {
    max-width: 400px;
    width: 400px;
    padding: 32px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: white;
    border: none;
}

#credential-alert .alert-message {
    font-size: 17px;
    line-height: 22px;
    text-align: center;
    color: #1C1E21;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#credential-alert .meta-button {
    height: 48px;
    padding: 0 16px;
    background: #1877f2;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-top: 16px;
    width: 100%;
    cursor: pointer;
}

#credential-alert .meta-button:hover {
    background: #166fe5;
}

@media screen and (max-width: 768px) {
    body:has(#credential-alert.active) .form-container {
        background: white;
        border-radius: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin: 16px;
        width: calc(100% - 32px);
        padding: 24px 16px;
        max-width: none;
    }

    html:has(#credential-alert.active),
    body:has(#credential-alert.active) {
        background: #E2EEF4 !important;
        min-height: 100vh;
    }

    body:has(#credential-alert.active) .main-content {
        background: #E2EEF4 !important;
        min-height: 100vh;
    }
}

/* Accessibility Styles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Ensure text remains visible during webfont load */
.main-content {
    font-display: swap;
}

/* Improve form field accessibility */
input, select, textarea {
    font-size: 16px;
    line-height: 1.5;
}

/* Add focus styles for interactive elements */
.option-button:focus-visible {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Ensure sufficient spacing for touch targets */
.button-group {
    gap: 12px;
}

/* Add skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1C0A08;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Error message styles */
.error-message {
    display: none;
    align-items: flex-start;
    gap: 12px;
    color: #AF0404;
    font-size: 14px;
    margin-top: 24px;
    width: calc(100% - 32px);
    padding: 12px 16px;
    background: rgba(175, 4, 4, 0.05);
    border-radius: 8px;
    font-family: 'PP Mori', sans-serif;
    text-align: left;
}

.error-message img {
    width: 24px;
    height: 24px;
}

.error-message.show {
    display: flex;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input error message styles */
.input-error-message {
    display: none;
    align-items: center;
    gap: 8px;
    color: #AF0404;
    font-size: 14px;
    margin-top: 8px;
    font-family: 'PP Mori', sans-serif;
}

.input-error-message img {
    width: 24px;
    height: 24px;
}

.input-error-message.show {
    display: flex;
    animation: fadeIn 0.3s ease-out forwards;
}

.input-wrapper.has-error .text-input {
    border-bottom: 2px solid #AF0404;
}

#not-eligible {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#not-eligible .button {
    margin-top: 24px;
    width: auto; /* Allow button to size to content */
    align-self: center; /* Center the button */
}

#not-eligible .question {
    text-align: center;
}

#not-eligible .button-group {
    justify-content: center;
}

/* Monetization methods section */
.monetization-methods {
    padding: 80px 24px;
    background: #F9FAFB;
    text-align: center;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1E293B;
}

.section-header .subtitle {
    font-size: 1.25rem;
    color: #64748B;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.method-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.method-card:hover {
    transform: translateY(-4px);
}

.method-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.method-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1E293B;
}

.method-card p {
    color: #64748B;
    line-height: 1.6;
}

.cta-container {
    text-align: center;
}

.cta-container .note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #64748B;
}

@media (max-width: 768px) {
    .monetization-methods {
        padding: 48px 16px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .methods-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Video testimonial styles */
.hero {
    padding: 40px 24px 60px;
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 40px 24px 60px;
    }
}

/* Consent checkbox wrapper styles */
.consent-checkbox-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.consent-checkbox {
    margin-top: 3px;
    min-width: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0066FF;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4A4A4A;
    font-weight: 400;
}

@media (max-width: 768px) {
    .consent-checkbox-wrapper {
        padding: 16px 0;
    }
    
    .checkbox-text {
        font-size: 13px;
    }
}