/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --background-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html,
body {
    overflow-x: hidden;
}

body {
    background-color: var(--background-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
}

/* Class to center content (for Payment Page) */
body.centered-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-height: 60px;
    max-width: 200px;
}

.brand-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 1.1em;
    color: #999;
    font-style: italic;
    font-weight: 500;
    text-align: center;
}

.amount-display {
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    margin: 20px 0;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.row {
    display: flex;
    gap: 15px;
}

.col {
    flex: 1;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #0069d9;
}

.btn-submit:active {
    transform: scale(0.98);
}

.footer-note {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* Error/Success Messages */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.error {
    background-color: #f8d7da;
    color: var(--danger-color);
}

.success {
    background-color: #d4edda;
    color: var(--success-color);
}

/* Landing Page Styles */
.landing-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.landing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.landing-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 80px;
    /* Increased separation */
    margin-bottom: 50px;
    justify-content: center;
}

.brand-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    height: 150px;
    /* Fixed height for consistency */
}

/* Hover Effect */
.brand-card:hover {
    transform: scale(1.08);
    /* Grow effect */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}



.admin-login-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.admin-login-btn:hover {
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Head Office Section */
.headoffice-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.headoffice-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.headoffice-info {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.headoffice-info p {
    margin: 5px 0;
}

.headoffice-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.headoffice-img-card {
    width: 250px;
    /* Fixed width */
    height: 180px;
    /* Fixed height */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.headoffice-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the box without distortion */
    display: block;
}

.headoffice-img-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .landing-container,
    .payment-container {
        padding: 20px;
    }

    .landing-header h1 {
        font-size: 1.8rem;
    }

    .brand-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .headoffice-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        /* Space for scrollbar if visible */
        justify-content: flex-start;
        /* Align images to start */
    }

    .headoffice-img-card {
        flex: 0 0 85%;
        /* SHow mostly one image, with a peek of next */
        width: auto;
        max-width: 350px;
        height: auto;
        aspect-ratio: 4 / 3;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        margin-right: 0;
        /* Gap handles spacing now */
    }
}