@import "../evo_theme_variables.css?v=2";
@import "../evo-main-icons.css";

.mobile-app {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: var(--primary-font, 'Poppins', sans-serif) !important;
    height: 100svh;
}

.mobile-app a {
    font-size: var(--font-size-regular) !important;
    color: var(--link-color);
    font-weight: var(--font-weight-medium);
}

.mobile-app .option-content i {
    height: 40px;
    width: 40px;
    font-size: 30px;
    line-height: 40px;
}

.mobile-app .option-content i:after {
    color: var(--active-color);
}

.mobile-app--header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 9rem;
}

.mobile-app--header b {
    color: var(--active-color);
}

.mobile-app--logo {
    width: 40%;
}

.mobile-app h1, .mobile-app--header b {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--primary-font, 'Poppins', sans-serif) !important;
}

.mobile-app--subheading {
    color: var(--main-text-color);
    font-family: var(--primary-font, 'Poppins', sans-serif) !important;
    align-self: flex-start;
    width: 100%;
    max-width: 400px;
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mobile-app--container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-app--option {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

.mobile-app--option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 290px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color-light);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: var(--primary-font, 'Poppins', sans-serif) !important;
}

.mobile-app--option-label:hover,
.mobile-app--option-label:focus,
.mobile-app--option-label:active,
.mobile-app--option-label:focus-visible {
    border-color: var(--active-color);
    border-width: 2px;
    box-shadow: 0 4px 8px rgba(0, 176, 80, 0.2);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-content--text {
    width: 80%;
}

.option-content svg {
    width: 3rem;
    height: 3rem;
    fill: #666;
}

.option-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--main-text-color);
    font-family: var(--primary-font, 'Poppins', sans-serif) !important;
}

.option-content p {
    margin: 0;
    font-size: 14px;
    color: var(--light-grey-text-color);
    font-family: var(--primary-font, 'Poppins', sans-serif) !important;
}

.mobile-app--container input[type="radio"].mobile-app--radio {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    flex-shrink: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 2px solid var(--border-color-light);
    border-radius: 50% !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    margin-right: 0 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.mobile-app--container input[type="radio"].mobile-app--radio:checked {
    border-color: var(--active-color) !important;
    background-color: var(--active-color) !important;
}

.mobile-app--container input[type="radio"].mobile-app--radio:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(36, 211, 165, 0.2) !important;
}

.mobile-app--container input[type="radio"].mobile-app--radio:before,
.mobile-app--container input[type="radio"].mobile-app--radio:after {
    display: none !important;
}

/* Override any global radio button styles */
.mobile-app input[type="radio"],
.mobile-app input[type="radio"]:before,
.mobile-app input[type="radio"]:after {
    all: unset !important;
}

/* Hide the automatically generated label for emptyLabel class */
.mobile-app input[type="radio"].emptyLabel + label[for="undefined"] {
    display: none !important;
}

/* Ensure emptyLabel radio buttons don't get default styling */
.mobile-app input[type="radio"].emptyLabel:before,
.mobile-app input[type="radio"].emptyLabel:after {
    display: none !important;
    content: none !important;
}

.mobile-app input[type="radio"].mobile-app--radio {
    width: 20px !important;
    height: 20px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 2px solid var(--border-color-light) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
    background-image: none !important;
    box-shadow: none !important;
    display: inline-block !important;
}

.mobile-app--container input[type="radio"].mobile-app--radio:checked::after {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: white !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
}

.mobile-app--radio:checked + .mobile-app--option-label,
input[type="radio"]:checked + .mobile-app--option-label {
    border-color: var(--active-color) !important;
    border-width: 3px;
    background-color: #f8fff8 !important;
}

.mobile-app--option:has(.mobile-app--radio:checked) .mobile-app--option-label {
    border-color: var(--active-color);
}

.mobile-app--continue-btn {
    display: flex;
    justify-content: center;
    width: 300px;
    margin-top: 20px;
    padding: .5rem;
    background-color: var(--active-color);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 176, 80, 0.3);
}

.mobile-app--continue-btn:hover:not(:disabled) {
    background-color: var(--active-color);
    box-shadow: 0 6px 12px rgba(0, 176, 80, 0.4);
}

.mobile-app--continue-btn:disabled {
    background-color: var(--border-color-light);
    cursor: not-allowed;
    box-shadow: none;
}

.mobile-app--continue-btn strong {
    font-size: 2rem;
}

.mobile-app--option-search {
    border-radius: 2rem !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 40px !important;
    color: var(--main-text-color) !important;
    border: 1px solid var(--border-color-light) !important;
}


/* Landscape orientation fixes */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .mobile-app {
        height: auto;
        min-height: 100vh;
        padding: .5rem 0;
    }

    .mobile-app--header {
        margin-bottom: 2rem; /* Reduced from 9rem */
    }

    .mobile-app--logo {
        width: 25%; /* Smaller logo in landscape */
    }

    .mobile-app h1, .mobile-app--header b {
        font-size: 1.5rem; /* Reduced from 2rem */
    }

    .mobile-app a {
        margin-top: 3px !important;
        padding: 0 !important;
    }

    .mobile-app--subheading {
        font-size: 1.2rem; /* Reduced from 1.5rem */
        margin-bottom: 0.5rem; /* Reduced from 1rem */
    }

    .mobile-app--option {
        margin-bottom: 0.5rem; /* Reduced from 1rem */
    }

    .option-content h3 {
        font-size: 16px; /* Reduced from 18px */
    }


    .mobile-app--continue-btn {
        margin-top: 0; /* Reduced from 20px */
        font-size: 16px; /* Reduced from 18px */
    }
}

/* Very short landscape screens (like iPhone in landscape) */
@media screen and (orientation: landscape) and (max-height: 400px) {
    .mobile-app--header {
        margin-bottom: 1rem;
    }

    .mobile-app--logo {
        width: 30%;
    }

    .mobile-app h1, .mobile-app--header b {
        font-size: 1.2rem;
    }

    .mobile-app--subheading {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .mobile-app--option {
        margin-bottom: 0.3rem;
    }

    .mobile-app--option-label {
        padding: 0.6rem 1rem;
    }


    .mobile-app--container input[type="radio"].mobile-app--radio {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
    }
}

/* General mobile improvements for better content fitting */
@media screen and (max-width: 768px) {
    .mobile-app--continue-btn {
        width: 100%;
        max-width: 400px;
    }
}

/* Ensure viewport doesn't zoom on landscape rotation */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Error message styles */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    position: relative;
}

.error-message .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
}
