/* WS Lounge Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #4361ee;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    display: inline-block;
    background: #4361ee;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary:hover {
    background: #3651d1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

.btn-nav {
    padding: 8px 22px;
}

/* Hero */
.hero {
    min-height: 88vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/main_BG.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content-wrapper {
    width: 100%;
}

.hero-content {
    max-width: 650px;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 36px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 10px;
}

/* Rates / Pricing */
.rates {
    padding: 90px 0;
    background: #f1f5f9;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.rate-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.rate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 1.3rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.card-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: #4361ee;
    margin-bottom: 24px;
}

.price-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

.card-features {
    margin-bottom: 28px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.feature-item:last-child {
    border-bottom: none;
}

.check-icon {
    color: #10b981;
    font-size: 1.1rem;
}

.btn-apply {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* About */
.about {
    padding: 90px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1e293b;
}

.about-content p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 40px;
}

.about-icons {
    display: flex;
    gap: 40px;
}

.about-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.about-icon-circle {
    width: 56px;
    height: 56px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 1.3rem;
    transition: background 0.2s, transform 0.2s;
}

.about-icon-circle:hover {
    background: #4361ee;
    color: #fff;
    transform: scale(1.08);
}

.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 480px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.welcome-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.modal-form .input-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.modal-form input:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.forgot-container {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-text {
    font-size: 0.82rem;
    color: #4361ee;
    text-decoration: none;
    font-weight: 500;
}

.forgot-text:hover {
    text-decoration: underline;
}

.btn-login-submit {
    width: 100%;
    padding: 14px;
    background: #4361ee;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Inter', sans-serif;
}

.btn-login-submit:hover {
    background: #3651d1;
    transform: translateY(-1px);
}

.signup-redirect {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.signup-redirect a {
    color: #4361ee;
    font-weight: 600;
    text-decoration: none;
}

.signup-redirect a:hover {
    text-decoration: underline;
}

.modal-flash-success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Styling for Alert Box */
.modal-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: opacity 0.5s ease-out;
}

.alert {
    transition: opacity 0.5s ease-out;
}

.modal-flash.fade-out,
.alert.fade-out {
    opacity: 0;
}

.modal-flash-close {
    margin-left: auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

/* Danger / Error Alert */
.modal-flash-danger, .modal-flash-error {
    background-color: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

/* Success Alert */
.modal-flash-success {
    background-color: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
}

.match-text-container {
    display: block;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin-top 0.25s ease, color 0.25s ease;
}

.match-text-container.visible {
    max-height: 1.5rem;
    margin-top: 4px;
    opacity: 1;
    transform: translateY(0);
}

.match-text-container.match-success {
    color: #198754;
}

.match-text-container.match-danger {
    color: #dc3545;
}

/* Icon style inside alert */
.modal-flash .alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Animated & Styled Success Alert */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease-out;
}

/* Success Checkmark Icon Style */
.alert-success::before {
    content: "✓";
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-icons {
        justify-content: center;
    }

    .about-image-container {
        order: -1;
    }

    .about-img {
        max-width: 380px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-flex {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 28px 20px;
    }
}
