/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a2a3a;
    --primary-light: #2c4058;
    --primary-dark: #0f1a26;
    --accent: #e8b832;
    --accent-hover: #d4a52a;
    --gray-50: #f8f9fa;
    --gray-100: #f0f1f3;
    --gray-200: #e2e4e8;
    --gray-300: #c5c8ce;
    --gray-400: #a0a5ae;
    --gray-500: #7a808a;
    --gray-600: #555b65;
    --gray-700: #3a404a;
    --gray-800: #252a33;
    --gray-900: #14181f;
    --success: #2e9a6e;
    --error: #c73e3e;
    --warning: #c98a2e;
    --radius: 8px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: 0.25s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ===== HEADER / NAV ===== */
header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 0;
    border-bottom: 4px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #fff;
}

.logo i {
    color: var(--accent);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    border-bottom-color: var(--accent);
}

.nav-links .btn-outline-light {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.nav-links .btn-outline-light:hover {
    background: var(--accent);
    color: var(--primary);
}

.nav-links .btn-outline-light i {
    margin-right: 0.4rem;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto 1.5rem;
}

.hero .badge-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.hero .badge-row i {
    color: var(--accent);
    margin-right: 0.4rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0.3rem auto 0;
}

.section-title .accent-line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.6rem auto 0;
    border-radius: 4px;
}

/* ===== FORM SECTION ===== */
#booking {
    padding: 3.5rem 0;
}

.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2.8rem;
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.8rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    color: var(--accent);
    font-size: 0.85rem;
}

.form-group label .required {
    color: var(--error);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 184, 50, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.1rem;
}

.form-group .error-text {
    font-size: 0.8rem;
    color: var(--error);
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--error);
}

.form-group.has-error .error-text {
    display: block;
}

/* ===== SERVICE CHECKBOX GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.7rem;
    margin-top: 0.3rem;
}

.service-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-50);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
    cursor: pointer;
}

.service-check:hover {
    border-color: var(--accent);
    background: #fff8e0;
}

.service-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.service-check label {
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--gray-700);
}

.service-check label .price-tag {
    color: var(--gray-500);
    font-weight: 400;
    font-size: 0.8rem;
}

/* ===== FEE DISPLAY ===== */
.fee-display {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.2rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 2px solid var(--gray-200);
    margin-top: 0.5rem;
}

.fee-display .fee-label {
    font-weight: 600;
    color: var(--gray-600);
}

.fee-display .fee-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.fee-display .fee-amount .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-500);
}

/* ===== OTP SECTION ===== */
.otp-section {
    background: #fffbe6;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.2rem 1.8rem;
    margin-top: 1.2rem;
    display: none;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.otp-section.visible {
    display: flex;
}

.otp-section .otp-label {
    font-weight: 600;
    color: var(--gray-700);
}

.otp-section input {
    flex: 1;
    min-width: 160px;
    padding: 0.6rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 600;
}

.otp-section input:focus {
    border-color: var(--accent);
    outline: none;
}

.otp-section .otp-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 184, 50, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

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

.btn-success:hover {
    background: #258a5e;
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: #b33535;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ===== ALERTS / FLASH ===== */
.alert {
    padding: 1rem 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 5px solid transparent;
}

.alert-success {
    background: #e6f5ee;
    border-left-color: var(--success);
    color: #1a6b4a;
}

.alert-error {
    background: #fde8e8;
    border-left-color: var(--error);
    color: #a12e2e;
}

.alert-warning {
    background: #fdf3e0;
    border-left-color: var(--warning);
    color: #8a621a;
}

.alert-info {
    background: #e3edf7;
    border-left-color: #2a7ab0;
    color: #1a5a7a;
}

.alert i {
    font-size: 1.3rem;
}

.flash-container {
    max-width: 860px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
}

/* ===== TABLES (Dashboard & Admin) ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background: var(--primary);
    color: #fff;
}

.table th,
.table td {
    padding: 0.8rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge.confirmed {
    background: var(--success);
    color: #fff;
}

.badge.pending {
    background: var(--warning);
    color: #fff;
}

.badge.cancelled {
    background: var(--error);
    color: #fff;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 3px solid var(--accent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner .copy {
    font-size: 0.9rem;
}

.footer-inner .socials {
    display: flex;
    gap: 1.2rem;
}

.footer-inner .socials a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    transition: color var(--transition);
}

.footer-inner .socials a:hover {
    color: var(--accent);
}

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

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

/* ===== UTILITY ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.gap-1 {
    gap: 1rem;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .nav-links {
        justify-content: center;
        gap: 0.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fee-display {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .otp-section {
        flex-direction: column;
        align-items: stretch;
    }

    .otp-section .otp-actions {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero .badge-row {
        gap: 1rem;
        font-size: 0.8rem;
    }
}

/* Package cards */
.package-card {
    transition: all 0.25s ease;
    user-select: none;
}

.package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.package-card:has(input:checked) {
    border-color: var(--accent) !important;
    background: #fffbe6;
}

.package-card input[type="radio"]:focus+label {
    outline: none;
}

/* Recurring checkbox style (matches service-check) */
.service-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-50);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
    cursor: pointer;
}

.service-check:hover {
    border-color: var(--accent);
    background: #fff8e0;
}

.service-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.service-check label {
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--gray-700);
}

.badge-review {
    background: #f0ad4e;
    color: #fff;
}

.badge-options {
    background: #5bc0de;
    color: #fff;
}

.badge.confirmed {
    background: var(--success);
    color: #fff;
}

.badge-review {
    background: #f0ad4e;
    color: #fff;
}

.badge-options {
    background: #5bc0de;
    color: #fff;
}

.badge.confirmed {
    background: var(--success);
    color: #fff;
}

/* Provider option cards */
.provider-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
    transition: all 0.2s;
}
.provider-option.selected {
    border-color: var(--success);
    background: #e6f5ee;
}

.provider-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
    transition: all 0.2s;
}
.provider-option.selected {
    border-color: var(--success);
    background: #e6f5ee;
}

.provider-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
    transition: all 0.2s;
}
.provider-option.selected {
    border-color: var(--success);
    background: #e6f5ee;
}

.badge-payment {
    background: #f39c12;
    color: #fff;
}

.badge-draft {
    background: #6c757d;
    color: #fff;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 3px solid var(--accent);
}

footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 1rem 0 0.5rem;
}

footer .footer-brand .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}
footer .footer-brand .logo i {
    color: var(--accent);
}
footer .footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0.2rem 0;
}
footer .footer-brand .contact-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}
footer .footer-brand .contact-info i {
    width: 1.4rem;
    color: var(--accent);
}

footer .footer-links h4,
footer .footer-social h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    position: relative;
}
footer .footer-links h4::after,
footer .footer-social h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.4rem;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer .footer-links ul li {
    margin-bottom: 0.5rem;
}
footer .footer-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}
footer .footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.25s ease;
}
footer .footer-links ul li a:hover {
    color: #fff;
}
footer .footer-links ul li a:hover::after {
    width: 100%;
}

footer .footer-social .social-icons {
    display: flex;
    gap: 1.2rem;
}
footer .footer-social .social-icons a {
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    transition: all 0.25s ease;
    display: inline-block;
}
footer .footer-social .social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.05);
}

footer .footer-copy {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.2rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    footer .footer-links h4::after,
    footer .footer-social h4::after {
        margin: 0.4rem auto 0;
    }
    footer .footer-social .social-icons {
        justify-content: center;
    }
}

.about-page .step-circle {
    background: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 480px) {
    .step-indicator span {
        font-size: 0.6rem;
    }
    .step-indicator div {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .table td .btn-sm {
        padding: 0.1rem 0.3rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 400px) {
    .package-card {
        padding: 0.5rem !important;
    }
}

.badge-search {
    background: #17a2b8;
    color: #fff;
}