/* Modern Global Styles - Clean White Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #f5f5f5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Fixes overlapping Next/Previous buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 20px;
    clear: both;
}

.form-navigation button {
    flex: 1; 
    max-width: 200px; 
}

/* Navigation */
.navbar {
    background: #ffffff;
    color: #000000;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* FIX: Grey background and padding removed from logo */
.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #000000;
    display: flex;
    align-items: center;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #666666;
}

.nav-links a.active {
    font-weight: 600;
}

/* Main Content */
main {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

/* Buttons */
.btn-primary {
    background: #000000;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #000000;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: #ffffff;
    color: #000000;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
}

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

/* Cards */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Headings */
h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #000000;
    letter-spacing: -1px;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 60px;
    font-size: 16px;
    color: #666666;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: #666666;
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000000;
}

/* --- PACKAGES GRID SYSTEM --- */

/* The Grid Container */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    width: 100%;
}

/* Individual Card */
.package-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Image Section */
.package-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.05);
}

/* Category Badge (Top Right) */
.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #111111; /* Primary Pink/Red */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Content Area */
.package-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header (Title + Price) */
.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.package-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111111;
    white-space: nowrap;
}

/* Description */
.package-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features (Icons) */
.package-features {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #4b5563;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
}

.package-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Select Button */
.btn-select {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background-color: #111111;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-top: auto; /* Pushes button to bottom */
}

.btn-select:hover {
    background-color: #111111;
    color: white;
}

/* Loading & Empty States */
.loading, .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.spin {
    animation: spin 1s linear infinite;
    font-size: 2rem;
    color: #111111;
    margin-bottom: 10px;
}

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

/* Mobile Response */
@media (max-width: 600px) {
    .packages-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 30px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
}