/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #e5e5e5;
    color: #fff;
    flex-shrink: 0;
}

.navbar .logo {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: bold;
    color: #4CAF50;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(12px, 2vw, 16px);
    transition: 0.3s;
}

.navbar ul li a:hover {
    color: #4CAF50;
}

.navbar-phone-btn {
    background: #4CAF50;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(12px, 2vw, 16px);
    transition: 0.3s;
}

.navbar-phone-btn:hover {
    background: #388E3C;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.hamburger div {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('../images/coverpic.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 20px;
    min-height: 100vh;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.hero-text h1 {
    font-size: clamp(22px, 6vw, 36px);
    line-height: 1.2;
    font-weight: bold;
}

.hero-text span {
    color: #4CAF50;
}

/* Form Card */
.form-card {
    position: relative;
    z-index: 2;
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-card h2 {
    text-align: center;
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 10px;
}

.tabs button {
    flex: 1;
    padding: 8px;
    border: 2px solid #008000;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(12px, 2vw, 16px);
    background: #fff;
    color: #008000;
    transition: 0.3s;
    border-radius: 6px 6px 0 0;
}

.tabs button:hover {
    background: #e8f5e9;
}

.tabs button.active {
    background: #008000;
    color: #fff;
    font-size: clamp(14px, 2.5vw, 18px);
}

/* Tab Content */
.tab-content {
    padding: 10px;
    border: 2px solid #4CAF50;
    border-radius: 0 0 10px 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tab-content input,
.tab-content button {
    font-size: clamp(12px, 2vw, 16px);
}

.tab-content input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.tab-content button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    background: #008000;
    color: #fff;
    transition: 0.18s;
}

.tab-content button:hover {
    background: #388E3C;
}

/* Button States */
.btn-disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

button:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

/* Loading Spinner */
#loading-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #4CAF50;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-links {
    width: 100%;
    background: #1f2937;
    color: #fff;
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    text-decoration: none;
    font-size: clamp(14px, 2.3vw, 16px);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-links a:hover {
    background-color: #388e3c;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

/* Modal Styles */
#coming-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    z-index: 1;
}

#modal-content {
    position: relative;
    background: #fff;
    padding: 25px 20px 20px;
    border-radius: 12px;
    max-width: 90%;
    text-align: center;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#modal-content img {
    max-width: 500px;
    width: 80%;
    height: auto;
    margin: 15px 0 5px;
}

#modal-text {
    margin-top: 12px;
    font-size: 1.2rem;
    color: #333;
}

#modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.6rem;
    cursor: pointer;
    color: #888;
    z-index: 3;
}

#modal-close:hover {
    color: #000;
}

#coming-soon-modal.show {
    opacity: 1;
    pointer-events: auto;
}

#coming-soon-modal.show #modal-content {
    transform: scale(1);
}

/* Responsive Styles */
@media (max-width: 600px) {
    .footer-links {
        gap: 15px;
        padding: 20px 10px;
    }
    
    .footer-links a {
        padding: 10px 18px;
    }
    
    #modal-content {
        padding: 15px 10px 10px;
    }
    
    #modal-content img {
        width: 95%;
        max-width: none;
    }
    
    #modal-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hamburger {
        display: flex;
    }
    
    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .navbar ul {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        width: 100%;
    }
    
    .navbar ul.show {
        max-height: 500px;
    }
    
    .navbar-phone-btn {
        order: 1;
        width: 100%;
        text-align: right;
        margin-bottom: 5px;
    }
    
    .form-card {
        max-width: 95%;
        padding: 12px;
    }
    
    .tab-content input,
    .tab-content button {
        font-size: 14px;
        padding: 10px;
    }
}