/* ========================================
   BOOKING PAGE STYLES
   Dedicated styles for booking.html
   ======================================== */

:root {
    --primary-green: #4CAF50;
    --dark-green: #2f7432;
    --darker-green: #1b3d1c;
    --logo-accent-gold: #81C784;
    --cta-orange: #FF5722;
    --cta-orange-hover: #E64A19;
    --text-white: #ffffff;
    --font-family-base: 'Poppins', sans-serif;
}

/* Booking page specific overrides */
body.booking-page {
    background: linear-gradient(135deg, #1a2a1f 0%, #0f1811 100%) !important;
    min-height: 100vh;
    color: #ffffff;
    font-family: var(--font-family-base);
    margin: 0;
    padding: 0 !important;
    padding-top: 0 !important;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.3);
}

.header {
    background: linear-gradient(135deg, rgba(47, 116, 50, 0.2) 0%, rgba(27, 61, 28, 0.3) 100%);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-unit {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(47, 116, 50, 0.7) 0%, rgba(76, 175, 80, 0.8) 100%);
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 25px rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

.logo-icon-main {
    color: var(--logo-accent-gold);
    font-size: 2.5rem;
    margin-right: 15px;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-organic {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.logo-text-pestcontrol {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.main-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.booking-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(47, 116, 50, 0.25) 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.card-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
}

.card-body {
    padding: 2.5rem;
}

.details-section {
    margin-bottom: 3rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.details-grid-clean {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.detail-card-full {
    width: 100%;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.detail-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    word-break: break-word;
    min-height: 1.5em;
}

.price-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(47, 116, 50, 0.25) 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.price-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.action-button {
    width: 100%;
    padding: 1.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cta-orange) 0%, var(--cta-orange-hover) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.2);
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 87, 34, 0.3);
    color: white;
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
    pointer-events: auto;
}

.payment-modal.active {
    display: flex;
    opacity: 1;
}

.payment-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 750px;
    max-height: 90vh;
    margin: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    pointer-events: auto;
}

.payment-modal.active .payment-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.payment-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.payment-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.payment-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.payment-message.error {
    display: block;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.payment-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--primary-green);
}

.payment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Progress Indicator */
.payment-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.progress-step.completed .step-number {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.progress-step.active .step-number {
    border-color: var(--cta-orange);
    color: var(--cta-orange);
    background: rgba(255, 87, 34, 0.1);
}

.step-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.progress-step.completed .step-label {
    color: var(--primary-green);
}

.progress-step.active .step-label {
    color: var(--cta-orange);
    font-weight: 500;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 1rem;
    margin-bottom: 1.5rem;
}

/* Payment Summary */
.payment-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.summary-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.summary-price {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-label {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.total-price {
    color: var(--cta-orange);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Express Payment Section */
.express-payment-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.security-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Card Payment Section */
.card-payment-section {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.card-input {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px;
    transition: all 0.3s ease;
}

.card-input:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.card-brands {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    justify-content: flex-end;
}

.card-brands i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.card-brands i:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Trust Section */
.trust-section {
    background: rgba(76, 175, 80, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.powered-by {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    border-top: none;
    padding-top: 0;
}

.powered-by strong {
    color: #635bff;
    font-weight: 600;
}

/* Enhanced Payment Button */
.payment-button {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cta-orange) 0%, var(--cta-orange-hover) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
    margin-bottom: 1rem;
}

.payment-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 87, 34, 0.4);
}

.payment-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.button-icon {
    font-size: 1.1rem;
}

.button-text {
    flex: 1;
}

.button-amount {
    font-weight: 700;
    font-size: 1.2rem;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Legal Text */
.legal-text {
    text-align: center;
    margin-top: 1rem;
}

.legal-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin: 0;
}

.legal-text a {
    color: var(--primary-green);
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

/* Stripe Elements custom style */
.StripeElement {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 14px 16px;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    width: 100%;
    transition: border-color 0.2s;
}

.StripeElement--focus {
    border-color: var(--primary-green);
}

.StripeElement--invalid {
    border-color: #ff6b6b;
}

.payment-modal-content label[for="card-element"] {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .price-amount {
        font-size: 2.8rem;
    }

    .main-container {
        margin: 2rem auto;
        padding: 0 0.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    /* Enhanced mobile payment modal */
    .payment-modal {
        background: #000000 !important;
        backdrop-filter: none !important;
        padding: 1rem 0;
    }

    .payment-modal-content {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        margin: 0 auto;
        padding: 1.5rem;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(26, 42, 31, 0.95) 0%, rgba(15, 24, 17, 0.95) 100%) !important;
        backdrop-filter: blur(10px) !important;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    /* Mobile-optimized progress indicator */
    .payment-progress {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .progress-line {
        width: 30px;
        margin: 0 0.3rem;
    }

    .step-label {
        font-size: 0.7rem;
        max-width: 60px;
        text-align: center;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Enhanced Apple Pay/Google Pay button for mobile */
    #payment-request-button {
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        min-height: 48px !important;
    }

    #payment-request-button button {
        min-height: 48px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
    }

    /* Mobile form optimizations */
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .security-badges {
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    /* Enhanced card input for mobile */
    .card-input {
        padding: 18px 16px;
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.1);
        min-height: 56px;
        box-sizing: border-box;
    }

    .card-input:focus-within {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    }

    .form-label {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    /* Better mobile card brands */
    .card-brands {
        justify-content: center;
        margin-top: 1.2rem;
        gap: 1rem;
    }

    .card-brands i {
        font-size: 1.8rem;
    }

    /* Enhanced payment button for mobile */
    .payment-button {
        padding: 1.4rem 1.2rem;
        font-size: 1.1rem;
        min-height: 64px;
        border-radius: 16px;
        margin-bottom: 1.5rem;
        box-shadow: 0 6px 20px rgba(255, 87, 34, 0.25);
        position: relative;
        overflow: hidden;
    }

    .payment-button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
    }

    .button-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .button-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .button-text {
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
        flex: 1;
    }

    .button-amount {
        font-size: 1.4rem;
        font-weight: 700;
        flex-shrink: 0;
    }

    .button-loading {
        font-size: 1.1rem;
        gap: 1rem;
    }

    /* Mobile payment summary */
    .payment-summary {
        padding: 1.2rem;
        border-radius: 12px;
        margin-top: 1rem;
    }

    .summary-item {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .summary-total {
        padding-top: 1rem;
        font-size: 1.1rem;
    }

    .total-price {
        font-size: 1.4rem;
    }

    /* Trust section mobile optimization */
    .trust-section {
        padding: 1rem;
        margin-bottom: 1.2rem;
        border-radius: 12px;
    }

    .powered-by {
        font-size: 0.9rem;
    }

    /* Legal text mobile optimization */
    .legal-text {
        margin-top: 1.2rem;
    }

    .legal-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    /* Modal close button optimization */
    .payment-modal-close {
        top: 1.2rem;
        right: 1.2rem;
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
    }

    .payment-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Enhanced Stripe Elements mobile styling */
    .StripeElement {
        padding: 18px 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.15);
        min-height: 56px;
        box-sizing: border-box;
    }

    .StripeElement--focus {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    }
}
