@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #2d5a27;    /* Forest Green */
    --accent: #c5a059;     /* Gold Sand */
    --text-dark: #1a1a1a;
    --text-light: #555;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --bg-soft: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e9f1e8 0%, #dbe4d9 100%);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 40px 20px;
    min-height: 100vh;
}

/* Main Portal Container */
.booking-portal {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h2 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

h3 {
    font-weight: 500;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--accent);
    color: var(--text-dark);
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* User Info Inputs */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

input[type="text"], input[type="tel"], input[type="date"], input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e1e1e1;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

/* Service Selection Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--accent);
}

.svc-check {
    width: 22px;
    height: 22px;
    margin-top: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.svc-info {
    flex: 1;
}

.svc-info strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
}

.svc-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.svc-inputs {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-inputs input {
    padding: 8px;
    font-size: 0.8rem;
}

/* Billing Table */
.invoice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
}

.invoice-table th {
    background: #f8fbf8;
    color: var(--primary);
    padding: 18px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.invoice-table td {
    padding: 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

/* Summary Card */
.summary-card {
    background: #1e2d1c;
    color: var(--white);
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    margin-left: auto;
}

.summary-card p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    opacity: 0.9;
}

.grand-total {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 1.6rem !important;
    font-weight: 600;
    color: var(--accent);
    opacity: 1 !important;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.btn-next, .btn-checkout {
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

.btn-next:hover {
    background: #23471e;
    transform: scale(1.03);
}

.btn-back {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #ddd;
    padding: 16px 30px;
    border-radius: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Success Banner */
.success-banner {
    background: #e7f3e6;
    color: #2e5a27;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #c3e6cb;
}

/* Payment Layout */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 30px;
}

.payment-left {
    background: #f9fbf9;
    padding: 40px;
    text-align: center;
    border-right: 1px dashed #ddd;
}

.payment-left img {
    border: 10px solid var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.payment-right {
    padding: 40px;
}

.bank-details p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.bank-details strong {
    color: var(--primary);
    width: 110px;
    display: inline-block;
}

.pay-amount {
    font-size: 1.4rem;
    color: var(--accent);
    margin-top: 20px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .payment-layout {
        grid-template-columns: 1fr;
    }
    .booking-portal {
        padding: 25px;
    }
    .payment-left {
        border-right: none;
        border-bottom: 1px dashed #ddd;
    }
}