:root {
    --primary-green: #00a650;
    --primary-yellow: #ffcc00;
    --bg-light: #f4f4f4;
    --text-dark: #333;
    --card-bg: #ffffff;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: var(--primary-green);
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    background-color: var(--primary-yellow);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.brand-text h1 {
    font-size: 1.1rem;
    line-height: 1;
}

.brand-text p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.balance-box {
    background-color: var(--primary-yellow);
    color: #000;
    padding: 5px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.balance-box span {
    display: block;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.balance-box strong {
    font-size: 1rem;
}

/* Decorative Strip */
.divider-strip {
    width: 100%;
    height: 10px;
    display: flex;
}

.strip-item {
    flex: 1;
}
.red { background-color: #ff3b30; }
.yellow { background-color: var(--primary-yellow); }
.black { background-color: #000; }

/* Main Content Area */
main {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    width: 100%;
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff3b30, var(--primary-yellow), var(--primary-green));
}

.icon-celebration {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}

.guaranteed-box {
    background-color: var(--primary-yellow);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.guaranteed-box .coin-icon {
    background-color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 1px solid #ccc;
}

.info-text {
    font-size: 0.8rem !important;
    color: #888 !important;
}

/* Question Specifics */
.question-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-count {
    color: var(--primary-green);
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.question-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: inline-block;
}

.reward-pill {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-yellow);
    width: 25%;
    transition: width 0.3s ease;
}

.question-image-card {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: white;
}

.question-image-card img {
    width: 100%;
    display: block;
}

.question-text-box {
    background-color: white;
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.question-text-box h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.question-text-box p {
    font-size: 0.8rem;
    color: #999;
}

.options-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.option-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s;
    min-width: 80px;
}

.option-btn:active {
    transform: scale(0.95);
}

.btn-green { background-color: #00a650; }
.btn-yellow { background-color: #f1c40f; }
.btn-red { background-color: #e74c3c; }

/* Outline Buttons for Q4 */
.btn-outline-red {
    background-color: white;
    border: 1px solid #e74c3c !important;
    color: #e74c3c !important;
}
.btn-outline-orange {
    background-color: white;
    border: 1px solid #f39c12 !important;
    color: #f39c12 !important;
}
.btn-outline-blue {
    background-color: white;
    border: 1px solid #3498db !important;
    color: #3498db !important;
}

.option-btn {
    white-space: pre-wrap; /* Allows \n to work */
    line-height: 1.2;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-check {
    width: 80px;
    height: 80px;
    background-color: #f0fff4;
    border: 2px solid #00a650;
    color: #00a650;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-check svg {
    width: 40px;
    height: 40px;
}

.modal-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #333;
}

.modal-reward {
    color: #00a650;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-reward span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

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

.large-check {
    width: 100px;
    height: 100px;
    background-color: transparent;
    border: 5px solid #00a650;
    margin-bottom: 30px;
}

.large-check svg {
    width: 60px;
    height: 60px;
}

.final-title {
    color: #333 !important;
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
}

.final-balance-box {
    background-color: var(--primary-green);
    color: var(--primary-yellow);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.final-balance-box span {
    display: block;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 5px;
}

.final-balance-box strong {
    font-size: 1.8rem;
}

.mini-divider {
    width: 100%;
    height: 8px;
    display: flex;
    margin-bottom: 25px;
}

.final-instruction {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 10px;
}

.final-btn {
    background-color: #00a650;
    margin-bottom: 30px;
}

.final-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.8rem;
}

.flag-icon {
    width: 25px;
    height: auto;
    border-radius: 2px;
}

/* Registration Form */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
}

.input-group input, .input-group select {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-green);
}

/* Method Selector */
.method-selector {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.method-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative; /* Necessário para o checkmark */
}

.selected-check {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-green);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.method-card.selected .selected-check {
    opacity: 1;
    transform: scale(1);
}

.method-card span {
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.method-icon.mpesa { background-color: #e60000; }
.method-icon.emola { background-color: #ff8c00; }
.method-icon.mkesh { background-color: #0056b3; }

.method-card:hover {
    border-color: #ddd;
    background-color: #f9f9f9;
}

.method-card.selected {
    border-color: var(--primary-green);
    background-color: rgba(0, 166, 80, 0.05);
}

.method-card.selected span {
    color: var(--primary-green);
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Footer Decor */
.footer-divider {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.line {
    flex: 1;
    height: 1px;
    border-top: 2px dotted var(--primary-green);
}

.stars {
    color: var(--primary-yellow);
    font-size: 0.8rem;
}

/* CTA Button */
.cta-button {
    width: 100%;
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
    background-color: #008c44;
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
