/* Variables matching Den Flittige Bi theme */
:root {
    --color-primary: #FFD700;
    --color-primary-light: #f2da4f;
    --color-primary-dark: #FFD700;
    --color-white: #ffffff;
    --color-black: #333333;
    --color-gray-light: #f5f5f5;
    --color-gray: #e0e0e0;
    --color-gray-dark: #666666;
    --color-background: #f9f9f9;
    --color-success: #28a745;
    --color-error: #dc3545;
    
    --font-primary: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile Hamburger Menu */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 70px 0 0 0;
    background-color: var(--color-background);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-black);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--color-white);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .navbar-container {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }
}

/* Beautiful Navigation Button Hover Effect */
nav.navbar .navbar-container .nav-menu a.nav-link.btn-primary,
.navbar .navbar-container .nav-menu a.nav-link.btn-primary,
.navbar .nav-menu a.nav-link.btn-primary,
.nav-menu a.nav-link.btn-primary,
a.nav-link.btn-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-black) !important;
    border: 2px solid var(--color-black) !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
}

/* Hover state with maximum specificity */
nav.navbar .navbar-container .nav-menu a.nav-link.btn-primary:hover,
.navbar .navbar-container .nav-menu a.nav-link.btn-primary:hover,
.navbar .nav-menu a.nav-link.btn-primary:hover,
.nav-menu a.nav-link.btn-primary:hover,
a.nav-link.btn-primary:hover {
    background-color: var(--color-black) !important;
    color: var(--color-primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Main Booking Container */
.booking-container {
    max-width: 1000px;
    margin: 20px auto 80px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px 20px;
    position: relative;
}

/* Booking Header */
.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h1 {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Booking Steps */
.booking-steps {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 500px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--color-gray);
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background-color: var(--color-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--color-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: bold;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.step.active .step-number {
    background-color: var(--color-primary);
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.2);
}

.step span {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    transition: color 0.3s ease;
}

.step.active span {
    color: var(--color-black);
    font-weight: 500;
}

/* Booking Pages */
.booking-page {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.booking-page.active {
    display: block;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.form-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--color-black);
    font-weight: 600;
}

/* Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-black);
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-black);
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

input.invalid {
    border-color: var(--color-error);
}

input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

.error-message {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Customer Type Toggle */
.toggle-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .toggle-buttons {
        grid-template-columns: 1fr;
    }
}

.toggle-btn {
    padding: 20px;
    border: 2px solid var(--color-gray);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.toggle-btn p {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    margin: 0;
}

.toggle-btn:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.toggle-btn.active {
    border-color: var(--color-primary);
    background-color: rgba(255, 215, 0, 0.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

/* Frequency Options */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .radio-group {
        grid-template-columns: 1fr;
    }
}

.radio-item {
    position: relative;
    border: 2px solid var(--color-gray); /* All frequency options have gray border by default */
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-item label {
    display: block;
    cursor: pointer;
    padding-left: 0;
    margin: 0;
}

.radio-item strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.radio-item small {
    color: var(--color-gray-dark);
}

.radio-item:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.radio-item input[type="radio"]:checked + label {
    color: var(--color-black);
}

/* Apply strong yellow border and shadow to selected frequency option */
.radio-item input[type="radio"]:checked ~ .radio-item,
.radio-item input[type="radio"]:checked + label + div,
.radio-item input[type="radio"]:checked {
    border-color: var(--color-primary);
}

/* Fix for the selected radio item */
.radio-item input[type="radio"]:checked ~ .radio-item {
    border-color: var(--color-primary);
}

/* When a radio button is checked, apply styles to its parent */
input[type="radio"]:checked + label {
    color: var(--color-black);
}

/* Apply strong yellow border and shadow to the selected item */
.radio-group .radio-item:has(input[type="radio"]:checked) {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Style for popular badge */
.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-black);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Remove border color from popular and recommended */
.radio-item.popular,
.radio-item.recommended {
    position: relative;
    border: 2px solid var(--color-gray); /* Enforce gray border by default */
}

/* Only show badge for popular option */
.radio-item.popular .popular-badge {
    display: block;
}

/* Duration Controls */
.duration-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.duration-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-primary);
    color: var(--color-black);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duration-btn:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
}

.duration-display {
    min-width: 100px;
    padding: 10px 20px;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin: 0 15px;
}

/* Helper Options */
.helper-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .helper-options {
        grid-template-columns: 1fr;
    }
}

.helper-option {
    padding: 25px;
    border: 2px solid var(--color-gray);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helper-option h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.helper-option .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 10px 0;
}

.helper-option p {
    color: var(--color-gray-dark);
    margin: 0;
    font-size: 0.9rem;
}

.helper-option:hover:not(.disabled) {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.helper-option.active {
    border-color: var(--color-primary);
    background-color: rgba(255, 215, 0, 0.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.helper-option.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: var(--color-gray-light);
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .social-login {
        grid-template-columns: 1fr;
    }
}

.social-btn {
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn i {
    margin-right: 10px;
}

.social-btn.google {
    background-color: #DB4437;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.yahoo {
    background-color: #410093;
}

.social-btn.microsoft {
    background-color: #0078d7;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--color-gray-dark);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-gray);
}

.divider span {
    padding: 0 10px;
    font-size: 0.9rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.95rem;
    cursor: pointer;
}

.help-text {
    display: block;
    color: var(--color-gray-dark);
    font-size: 0.85rem;
    margin-top: 5px;
    margin-left: 28px;
}

/* Footer */
.booking-footer {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 40px;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .price-display {
        flex-direction: column;
    }
    
    .price-info, .footer-links, .action-buttons {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
}

.price-info {
    flex: 1;
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-black);
}

.price-breakdown {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

.footer-links {
    margin: 0 20px;
}

.footer-links a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-black);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-gray);
}

.btn-secondary:hover {
    background-color: var(--color-gray-light);
    border-color: var(--color-black);
    transform: translateY(-3px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    margin: 50px auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    box-shadow: var(--shadow);
    animation: slideIn 0.5s ease;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 30px 20px;
        padding: 20px;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--color-gray-dark);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--color-black);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--color-black);
}

.price-info-content,
.faq-content {
    margin-top: 20px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.price-table td {
    padding: 10px;
    border-bottom: 1px solid var(--color-gray);
}

.price-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-black);
}

.faq-item p {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-gray);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--color-black);
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-error);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: none;
    z-index: 1000;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .booking-container {
        margin: 20px 15px 60px;
    }
}

@media (max-width: 768px) {
    .booking-header h1 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }    
    .action-buttons {
        flex-direction: column;
    }
}

/* Booking Confirmation Page Styling */
.booking-confirmation {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.confirmation-title {
    font-size: 2rem;
    color: var(--color-black);
    margin-bottom: 20px;
    font-weight: 600;
}

.confirmation-message {
    font-size: 1rem;
    color: var(--color-gray-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}

.confirmation-details {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
}

.details-title {
    font-size: 1.3rem;
    color: var(--color-black);
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
}

.booking-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray);
}

.detail-label {
    font-weight: 500;
    color: var(--color-gray-dark);
}

.detail-value {
    font-weight: 500;
    color: var(--color-black);
}

.confirmation-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.account-link {
    color: var(--color-gray-dark);
}

.account-link a {
    color: var(--color-primary-dark);
    font-weight: 500;
    text-decoration: none;
}

.account-link a:hover {
    text-decoration: underline;
}

.confirmation-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    background-color: var(--color-primary);
    color: var(--color-black);
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.confirmation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .booking-confirmation {
        padding: 30px 20px;
    }
    
    .confirmation-title {
        font-size: 1.8rem;
    }
}
