/* GLOBAL RESET */
* { margin:0; padding:0; box-sizing:border-box; font-family:Arial,sans-serif; }
html, body { height:100%; background:#f4f6f8; overflow-x:hidden; display:flex; flex-direction:column; }
.page-content { flex:1; width:100%; }

/* HEADER */
.site-header {
    width:100%; background:#0369a1; color:#fff; padding:15px 20px;
    display:flex; justify-content:center; position:sticky; top:0; z-index:1000;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
}
.header-container { width:100%; max-width:700px; display:flex; justify-content:space-between; align-items:center; }
.site-header .site-title { font-size:1.4rem; font-weight:bold; }

/* NAVIGATION */
.main-nav { display:flex; gap:15px; }
.main-nav a { color:#fff; text-decoration:none; font-weight:bold; }
.main-nav a:hover, .main-nav a:focus { text-decoration:underline; outline:none; }

/* HAMBURGER */
.hamburger { display:none; flex-direction:column; cursor:pointer; gap:5px; }
.hamburger span { width:25px; height:3px; background:#fff; border-radius:2px; transition:0.3s; }
.hamburger.active span:nth-child(1){ transform:rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:rotate(-45deg) translate(5px,-5px); }

/* HERO */
.hero { text-align:center; max-width:700px; margin:0 auto; }
.hero h1 { font-size:2rem; margin-bottom:15px; }
.hero p { font-size:1rem; margin-bottom:25px; }

/* BUTTONS - Modern CTA style including disabled */
.cta-buttons { display:flex; justify-content:center; gap:15px; flex-wrap:wrap; margin-bottom:15px; }
.cta-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    color: #fff;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, opacity 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.cta-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.cta-btn.disabled {
    background: linear-gradient(135deg, #a0c4ff, #7da2d9);
    color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* CTA Secondary Button (Login on index.php) - greenish-blue */
.cta-btn.secondary {
    background: linear-gradient(135deg, #10b981, #0d9488); /* greenish-blue gradient */
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.cta-btn.secondary:hover:not(.disabled) {
    background: linear-gradient(135deg, #0d9488, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cta-btn.secondary.disabled {
    background: linear-gradient(135deg, #a0f0e0, #7dd5cc);
    color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* CTA NOTE with pulsating effect */
@keyframes pulsate-color {
    0% { transform: scale(1); background-color: #e0f2ff; opacity: 1; }
    50% { transform: scale(1.05); background-color: #bae6fd; opacity: 0.95; }
    100% { transform: scale(1); background-color: #e0f2ff; opacity: 1; }
}
.cta-note {
    background:#e0f2ff; 
    color:#0369a1; 
    padding:10px 15px; 
    border-radius:8px; 
    max-width:350px; 
    text-align:center; 
    margin:10px auto;
    animation: pulsate-color 1.5s infinite ease-in-out;
}

/* LOGIN & FORGOT PASSWORD CONTAINERS */
.login-container,
.forgot-container {
    width: 100%;
    max-width: 380px;
    background: #fff;
    margin: 40px auto;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.1);
}
.login-container h2,
.forgot-container h2 { text-align: center; margin-bottom: 20px; }
.login-container label,
.forgot-container label { font-weight: bold; display: block; margin-bottom: 5px; }
.login-container input,
.forgot-container input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; margin-bottom: 15px; font-size: 16px; }

/* Buttons for login & forgot password */
.login-container button,
.forgot-container button {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    color: #fff;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.login-container button:hover,
.forgot-container button:hover { 
    background: linear-gradient(135deg, #0284c7, #0369a1); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); 
}

/* MESSAGES */
.error-message { color: #dc2626; margin-bottom: 15px; text-align: center; font-weight: bold; }
.success-message { color: #16a34a; margin-bottom: 15px; text-align: center; font-weight: bold; }

/* EXTRA LINKS */
.extra-links { text-align: center; margin-top: 15px; }
.extra-links a { color: #0ea5e9; text-decoration: none; }
.extra-links a:hover { text-decoration: underline; }

/* REGISTER CARD */
.register-card { background:#e0f2ff; color:#0369a1; padding:10px 15px; border-radius:8px; max-width:350px; text-align:left; margin:10px auto; }
.register-card ul { padding-left:20px; }
.register-card li { margin-bottom:6px; }

/* FOOTER */
footer { position:fixed; bottom:0; width:100%; height:60px; background:#0369a1; color:#fff; text-align:center; padding:10px 0; z-index:1000; }

/* MOBILE */
@media(max-width:768px){
    .hamburger{ display:flex; }
    .main-nav { display: flex; flex-direction: column; width: 100%; background: #0369a1; position: absolute; top: 100%; left: 0; z-index: 999; overflow: hidden; max-height: 0; transition: max-height 0.4s ease-in-out; text-align: center; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
    .main-nav.active { max-height: 500px; }
    .main-nav a { margin: 10px 15px; display: block; font-size: 1.1rem; font-weight: bold; }
    .cta-buttons { flex-direction:column; gap:10px; }
    .cta-buttons a { width:80%; margin:5px auto; text-align:center; }
    .cta-note { width:90%; }
}

@media(max-width:480px){
    .hero h1{ font-size:1.6rem; }
    .hero p{ font-size:0.95rem; }
    .register-card{ font-size:0.9rem; }
}

/* HEALTH MODAL */
.health-modal { display:none; position:fixed; z-index:9999; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.4); backdrop-filter:blur(2px); display:flex; justify-content:center; align-items:flex-start; padding:60px 20px 20px; overflow-y:auto; }
.health-modal-content { background:#fff; padding:25px 30px; border-radius:16px; max-width:400px; max-height:90vh; overflow-y:auto; text-align:center; box-shadow:0 6px 20px rgba(0,0,0,0.3); position:relative; }
.health-modal-content h2 { margin-bottom:15px; }
.modal-close-btn { background:#0369a1; color:#fff; padding:10px 20px; border-radius:12px; font-weight:600; cursor:pointer; margin-top:10px; }
/* ---------------- Global Styles ---------------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    scroll-behavior: smooth;
}

/* ---------------- Main Layout ---------------- */
main {
    display: block;
    padding: 60px 20px 40px 20px; /* top padding for header */
    min-height: calc(100vh - 120px); /* leave space for footer */
}

/* ---------------- Form Card ---------------- */
.form-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px auto;
}

/* ---------------- Form Groups & Inputs ---------------- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
}

/* ---------------- Buttons ---------------- */
button.cta-btn {
    width: 100%;
    background: #007bff;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

button.cta-btn:hover {
    background: #0056b3;
}

.payment-btn {
    background: #17a2b8;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-btn:hover {
    background: #138496;
}

/* ---------------- Messages ---------------- */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

/* ---------------- Terms Modal ---------------- */
.terms-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.terms-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
}

.terms-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.terms-close:hover {
    color: red;
}

/* ---------------- Upload Progress ---------------- */
#uploadProgress {
    display: none;
    background: #eee;
    border-radius: 5px;
    height: 15px;
    margin-top: 5px;
}

#uploadProgressBar {
    width: 0%;
    height: 100%;
    background: #28a745;
    text-align: center;
    color: white;
    font-size: 12px;
}

#payment_preview img {
    max-width: 100%;
    margin-top: 10px;
}

/* ---------------- Logo ---------------- */
header .logo {
    width: 150px;
    color: white;
}

/* ---------------- reCAPTCHA ---------------- */
.recaptcha-wrapper {
    width: 280px;           /* same as your buttons */
    margin: 0 auto;          /* center it */
}

.recaptcha-wrapper .g-recaptcha {
    transform: scale(0.88);  /* shrink proportionally */
    transform-origin: 0 0;   /* scale from top-left */
}
/* ------------------------
   Register Page Form Styling
-------------------------*/

/* Form Card */
.register-card, .form-card {
    background-color: #fefefe;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 20px auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form labels */
.form-group label {
    display: block;
    font-weight: 600;
    color: #1f2937; /* dark-gray text like index.php */
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* Input fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db; /* light-gray border */
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6; /* blue focus like index.php */
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

/* Terms checkbox */
.form-group.terms label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Payment Buttons */
.payment-btn {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 18px;
    margin: 5px 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.payment-btn:hover {
    background-color: #2563eb;
}

/* Submit button */
.cta-btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 0;
    margin-top: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Upload preview */
#payment_preview img {
    max-width: 200px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

/* Progress Bar */
#uploadProgress {
    width: 100%;
    background: #e5e7eb;
    height: 8px;
    border-radius: 6px;
    margin-top: 6px;
    display: none;
}

#uploadProgressBar {
    height: 100%;
    width: 0%;
    background-color: #3b82f6;
    border-radius: 6px;
    text-align: center;
    color: white;
    font-size: 0.7rem;
    line-height: 1.2;
}

.cta-btn.register-submit {
    background: linear-gradient(135deg, #10b981, #3b82f6); /* greenish-blue gradient */
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn.register-submit:hover {
    background: linear-gradient(135deg, #059669, #2563eb); /* slightly darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Parent container styling */
.register-card {
    background: #e0f2ff;
    color: #0369a1;
    padding: 18px 20px;
    border-radius: 14px;
    max-width: 380px;
    margin: 18px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    font-size: 0.95rem; /* Sets the base size for everything */
    line-height: 1.45;
}

/* Normalize ALL child elements */
.register-card * {
    font-size: inherit !important;
}

/* Title */
.rc-title {
    text-align: center;
    font-size: 1.15rem !important;
    font-weight: bold;
    margin-bottom: 15px;
    color: #014f78;
}

/* Benefits */
.rc-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}

.rc-item i {
    font-size: 1.1rem !important;
    margin-right: 10px;
    color: #0284c7;
}

/* Divider */
.rc-divider {
    margin: 18px 0;
    border-top: 1px solid #89cff0;
}

/* Price section */
.rc-price {
    text-align: center;
    font-size: 1.1rem !important;
    font-weight: bold;
    margin-bottom: 15px;
    color: #014f78;
}

/* Notes */
.rc-note {
    text-align: center;
    opacity: 0.9;
}
.register-card,
.register-card * {
    font-size: 0.95rem;   /* or any size you want */
}
/* ===== DASHBOARD ===== */
.dashboard-container {
    max-width: 1100px;
    margin: 100px auto;
    padding: 20px;
}

.dashboard-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.user-email {
    text-align: center;
    color: #555;
    margin-bottom: 35px;
    font-size: 15px;
}

/* ===== GRID CARDS ===== */
.dashboard-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dash-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #e1e1e1;
    text-align: left;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: #000;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

.dash-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.dash-label {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.dash-sub {
    font-size: 13px;
    color: #777;
}

/* ===== LOGOUT ===== */
.logout-btn {
    display: block;
    margin: 45px auto 0;
    width: 160px;
    padding: 12px;
    text-align: center;
    background: #c62828;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.logout-btn:hover {
    background: #a31414;
}

/* ===== STREAK PROGRESS BAR ===== */
.streak-bar-container {
    background: #e0e0e0;
    border-radius: 12px;
    height: 12px;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
}

.streak-bar-fill {
    height: 100%;
    border-radius: 12px;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.streak-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #555;
    margin-top: 5px;
}

/* MOBILE */
@media (max-width: 480px) {
    .dashboard-title { font-size: 22px; }
    .dash-card { padding: 20px; }
}
