/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #007BFF; /* Bright Blue */
    --secondary-color: #ffc107; /* Bright Yellow */
    --accent-color: #dc3545; /* Action Red */
    --dark-color: #212529; /* Dark Gray for text */
    --light-color: #f8f9fa; /* Off-white for backgrounds */
    --white-color: #ffffff;
    --gray-color: #6c757d;

    --font-heading: 'Balsamiq Sans', cursive;
    --font-body: 'Nunito', sans-serif;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--white-color);
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* --- HEADER --- */
.main-header {
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
}
.main-nav a {
    color: var(--dark-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
#hero {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.9)), url('https://www.transparenttextures.com/patterns/cubes.png');
    min-height: 85vh;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.hero-content h1 span {
    color: var(--secondary-color);
}
.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* --- FIGURES GALLERY --- */
#figures-gallery {
    background-color: var(--light-color);
}
.filter-buttons {
    text-align: center;
    margin-bottom: 2.5rem;
}
.btn-filter {
    background-color: #e9ecef;
    color: var(--dark-color);
    margin: 0 10px;
}
.btn-filter.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.figure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.figure-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.figure-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.figure-card img {
    width: 100%;
    height: auto;
    display: block;
}
.figure-card .card-content {
    padding: 1.5rem;
}
.figure-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 50px;
    color: var(--white-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}
.card-badge.current { background-color: var(--accent-color); }
.card-badge.expired { background-color: var(--gray-color); }

/* Hide expired by default */
.figure-card[data-status="expired"] {
    display: none;
}

/* --- HOW TO GET SECTION --- */
#how-to-get {
    background: var(--white-color);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.step-card {
    padding: 2rem;
}
.step-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}
.step-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* --- RULES SECTION --- */
#rules {
    background-color: var(--light-color);
}
#rules .container {
    max-width: 800px;
}
#rules ul {
    list-style-type: none;
    padding-left: 0;
}
#rules li {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007BFF"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') no-repeat left center;
    background-size: 24px;
    padding: 10px 0 10px 40px;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
}
#rules li:last-child {
    border-bottom: none;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white-color);
}
.footer-col h4 {
    color: var(--secondary-color);
}
.footer-col .logo {
    color: var(--white-color);
}
.footer-col p {
    color: #adb5bd;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: not-allowed; /* Make them look non-clickable */
}
.footer-col ul a:hover {
    color: var(--white-color);
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #343a40;
    color: #adb5bd;
}
.footer-bottom p {
    font-size: 0.9rem;
}

/* --- GENERIC PAGE STYLES (for About, Contact, etc.) --- */
.page-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.page-content {
    padding: 4rem 0;
    background: var(--white-color);
}
.page-content .container {
    max-width: 800px;
}
.page-content h2 {
    text-align: left;
    color: var(--primary-color);
}
.page-content p, .page-content ul {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.page-content li {
    margin-bottom: 0.5rem;
}

/* --- FAQ PAGE ACCORDION --- */
.faq-item details {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background: var(--light-color);
}
.faq-item summary {
    padding: 1.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    color: var(--dark-color);
}
.faq-item summary::-webkit-details-marker { display: none; } /* For Chrome */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}
.faq-item details[open] summary::after {
    transform: rotate(45deg);
}
.faq-item .faq-answer {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #ddd;
}

/* --- RESPONSIVE DESIGN --- */
@media(max-width: 992px) {
    .figure-grid, .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .main-header .container {
        flex-direction: column;
    }
    .main-nav {
        margin-top: 1rem;
    }
    .figure-grid, .steps-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- CONTACT PAGE & FORM STYLES --- */
.contact-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-color);
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form .btn {
    width: auto;
    cursor: pointer;
}

/* --- CLAIM PAGE STYLES --- */
#claim-hero {
    background: linear-gradient(rgba(40, 167, 69, 0.85), rgba(33, 136, 56, 0.9)), url('https://www.transparenttextures.com/patterns/cubes.png');
    color: var(--white-color);
    text-align: center;
    padding: 5rem 0;
}
#claim-hero h1 {
    font-size: 3.2rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
#claim-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

#claim-steps-container {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.claim-step {
    background: var(--white-color);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}
/* Add this new class to your css/style.css file */
.hidden-step {
    display: none;
}
.claim-step h2 {
    text-align: left;
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--dark-color);
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: background-color 0.4s ease;
}
.claim-step.locked {
    opacity: 0.5;
    pointer-events: none; /* Disables interaction on the whole block */
}
.claim-step.locked h2, .claim-step.locked p {
    color: var(--gray-color);
}
/* Re-enable pointer events on the container so it's not permanently disabled */
#claim-steps-container .locked {
    pointer-events: auto;
}
/* Specifically disable buttons inside a locked step */
.claim-step.locked .btn {
    pointer-events: none;
}
.claim-step.completed .step-number {
    background-color: #28a745; /* Green for completed */
}
.claim-step .btn {
    margin-top: 1rem;
}
.claim-step button:disabled {
    background-color: #e9ecef;
    color: var(--gray-color);
    cursor: not-allowed;
    box-shadow: none;
}

/* --- MODAL (POP-UP) STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#survey-iframe {
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
    margin-top: 1rem;
}

/* --- DATA VIEWER TABLE STYLES --- */
.data-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}
#data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
#data-table th, #data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
#data-table th {
    background-color: var(--light-color);
    font-family: var(--font-heading);
    color: var(--primary-color);
}
#data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}