/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F0F4F0;
    font-family: 'Inter', 'Lato', sans-serif;
    color: #1A1A1A;
    line-height: 1.6;
    font-size: 18px;
}

img {
    width: 100%;
    height: auto !important;
    display: block;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Progress Bar */
#progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #2E7D32;
    transition: width 0.4s ease;
}

/* Header */
#main-header {
    background-color: #FFFFFF;
    border-bottom: 2px solid #2E7D32;
    padding: 0;
    margin-top: 6px; /* Offset for progress bar */
}

.header-logo {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    max-height: 90px;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

/* App Container */
#app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    min-height: calc(100vh - 96px);
}

@media (min-width: 600px) {
    #app-container {
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    }
}

@media (max-width: 599px) {
    #app-container {
        width: 100%;
        margin: 0;
    }
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-padding {
    padding: 24px;
}

/* Typography */
.headline {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.subtext {
    font-size: 18px;
    text-align: center;
    color: #555555;
    margin-bottom: 20px;
}

.centered { text-align: center; }
.font-bold { font-weight: bold; }
.text-gray { color: #555555; }
.text-light-gray { color: #888888; }
.text-dark { color: #1A1A1A; }
.text-green { color: #2E7D32; }

/* Buttons */
.btn-type-a {
    background: linear-gradient(135deg, #2E7D32, #43A047);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    width: 100%;
    min-height: 60px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 14px;
    animation: pulse 2.5s ease-in-out infinite;
    padding: 12px 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-type-a:hover {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    transform: scale(1.02);
}

.btn-type-negative {
    background: linear-gradient(135deg, #B71C1C, #E53935);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    width: 100%;
    min-height: 60px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 14px;
    animation: pulse 2.5s ease-in-out infinite;
    padding: 12px 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-type-negative:hover {
    background: linear-gradient(135deg, #9b1818, #B71C1C);
    transform: scale(1.02);
}

.btn-type-a.disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    animation: none;
    opacity: 0.7;
}

.btn-type-a.disabled:hover {
    transform: none;
    background: #ccc;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46,125,50,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(46,125,50,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,125,50,0); }
}



/* Specific Screen Styles */

/* Screen 1 */
.hero-image {
    border-radius: 0;
    margin-bottom: 20px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Screen 2 */
.gender-cards {
    display: flex;
    gap: 12px;
}

.card {
    flex: 1;
    cursor: pointer;
}

/* Screen 4b */
.plain-text-block {
    margin-bottom: 24px;
}
.txt-18 { font-size: 18px; color: #1A1A1A; margin-bottom: 4px; }
.txt-20-green { font-size: 20px; font-weight: bold; color: #2E7D32; margin-bottom: 4px; }
.txt-20-red { font-size: 20px; font-weight: bold; color: #C62828; margin-bottom: 4px; }
.label-green { font-size: 16px; font-weight: bold; color: #2E7D32; text-align: center; margin-bottom: 10px; }
.full-width-img { margin-bottom: 24px; }
.spacer-24 { height: 24px; }
.spacer-20 { height: 20px; }

/* Screen 7 & 11 Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pill-checkbox {
    background: #FFFFFF;
    border: 2px solid #2E7D32;
    color: #2E7D32;
    border-radius: 20px;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-checkbox.selected {
    background: #2E7D32;
    color: #FFFFFF;
}

/* Screen 9 */
.headline-alert { font-size: 22px; font-weight: bold; color: #C62828; text-align: center; margin-bottom: 5px; }
.subheadline { font-size: 20px; font-weight: bold; text-align: center; margin-bottom: 15px; }
.txt-16 { font-size: 16px; margin-bottom: 15px; }

/* Testimonials */
.testimonial-card {
    background: #FFFFFF;
    border-left: 4px solid #2E7D32;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.test-name { font-weight: bold; font-size: 18px; margin-bottom: 2px; }
.test-loc { font-size: 16px; color: #555555; margin-bottom: 5px; }
.test-stars { margin-bottom: 10px; }
.test-text { font-style: italic; font-size: 17px; }

/* Screen 15 Testimonial Grid */
.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.test-grid img {
    margin-bottom: 0;
}

/* Screen 16 Loading */
.flex-center-load {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
}
.txt-24-bold { font-size: 24px; font-weight: bold; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-5 { margin-bottom: 5px; }
.pb-40 { padding-bottom: 40px; }

.loading-bar-wrapper {
    width: 100%;
    height: 12px;
    background-color: #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
}

#loading-bar {
    width: 0%;
    height: 100%;
    background-color: #2E7D32;
    transition: width 0.1s linear;
}

/* Screen 17 */
.txt-20-bold { font-size: 20px; font-weight: bold; }
.txt-22-red-italic { font-size: 22px; font-weight: bold; font-style: italic; color: #C62828; }
.card-outline-green {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #2E7D32;
}
.txt-18-bold { font-size: 18px; font-weight: bold; }

/* Screen 18 */
.txt-28-bold { font-size: 28px; font-weight: bold; text-align: center; }
.txt-22-bold { font-size: 22px; font-weight: bold; text-align: center; }
.txt-18-strike { font-size: 18px; color: #888888; text-decoration: line-through; }
.txt-48-green { font-size: 48px; font-weight: bold; color: #2E7D32; }
.card-soft-green {
    padding: 20px;
    border-radius: 12px;
    background: #F4FAF4;
}
.card-white {
    padding: 24px;
    border-radius: 12px;
    background: #FFFFFF;
}
.lh-17 { line-height: 1.7; }
.divider {
    border: none;
    border-top: 1px solid #E0E0E0;
    margin: 20px 0;
}
.txt-14 { font-size: 14px; }
.logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    justify-items: center;
    align-items: center;
    margin-bottom: 24px;
}
.logos-grid img {
    max-height: 60px;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    filter: grayscale(100%);
    opacity: 0.65;
    object-fit: contain;
    margin-bottom: 0;
}
.logos-grid img:last-child {
    grid-column: 1 / -1;
    max-height: 45px;
}
