/* Modern Booking Page Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #3a4268;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #eef1f6 0%, #e2e8f0 100%);
    color: #3a4268;
    padding: 120px 0 60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Ensure header is not blocked */
.appie-header-area {
    position: relative;
    z-index: 1000;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #eef1f6 0%, #e2e8f0 100%);
    z-index: -1;
}

.hero-content {
    text-align: left;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-image {
    width: 250px;
    height: 250px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info {
    text-align: left;
    max-width: 500px;
    flex: 1;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.service-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.service-tag {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #0e1133;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #c7d2fe;
    box-shadow: 0 2px 6px #0e1133;
    transition: all 0.2s ease;
    cursor: default;
}

.service-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3730a3;
}

/* Booking Section */
.booking-section {
    padding: 40px 0 80px;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.booking-form {
    background: transparent;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.section-title h3 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

.section-title p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    min-height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: #f8fafc;
}

.form-control::placeholder {
    color: #a0aec0;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-group:focus-within .input-icon {
    color: #3b82f6;
}

.form-help {
    margin: 8px 0 0 0;
    font-size: 0.875rem;
    color: #718096;
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #e53e3e;
}

/* Photo Upload */
.photo-upload-area {
    margin-top: 16px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.upload-button {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-content {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    transition: all 0.2s ease;
    background: #f7fafc;
}

.upload-content:hover {
    border-color: #eef1f6;
    background: #f8fafc;
}

.upload-content i {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s ease;
}

.upload-content:hover i {
    color: #3b82f6;
}

.upload-content span {
    color: #4a5568;
    font-weight: 500;
}

/* Sidebar */
.form-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.sidebar-card h4 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

/* Pricing Options */
.pricing-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.pricing-option:last-child {
    margin-bottom: 0;
}

.pricing-option:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Recommended option styling */
.pricing-option.recommended {
    border: 3px solid #ff6b35;
    background: linear-gradient(135deg, #fff8f5 0%, #fff 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.pricing-option.recommended::before {
    content: "⭐ RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.pricing-option.recommended:hover {
    border-color: #ff5722;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.25);
    transform: translateY(-2px);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.option-header input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #ff6b35;
    cursor: pointer;
}

.option-header input[type="radio"]:checked {
    accent-color: #ff6b35;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.option-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.option-title {
    font-weight: 600;
    color: #2d3748;
}

.option-badge {
    background: #eef1f6;
    color: #3a4268;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
}

.recommended .option-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

.option-details {
    margin-left: 32px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row span:first-child {
    color: #4a5568;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.option-details p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f3ff 100%);
    border: 1px solid #c6f6d5;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
    border: 2px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.info-card h4 {
    margin-bottom: 12px;
}

.info-card p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Submit Card */
.submit-card {
    background: linear-gradient(135deg, #eef1f6 0%, #d1d5db 100%);
    color: #3a4268;
    text-align: center;
    border: 2px solid #d1d5db;
}

.submit-card h4 {
    color: white;
    margin-bottom: 16px;
}

.payment-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Loading Modal */
.loading-spinner {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.loading-spinner .spinner-circle {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #e5e7eb !important;
    border-top: 4px solid #3b82f6 !important;
    border-radius: 50% !important;
    animation: modern-spin 1s linear infinite !important;
    text-indent: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    position: relative !important;
    transform: none !important;
    display: inline-block !important;
    margin: 0 auto !important;
    content: "" !important;
}

.loading-spinner .spinner-circle:before,
.loading-spinner .spinner-circle:after {
    display: none !important;
    content: none !important;
}

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

#spinnerModal .modal-body h4 {
    margin-bottom: 8px;
    color: #2d3748;
}

#spinnerModal .modal-body p {
    color: #718096;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .booking-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-sidebar {
        position: static;
    }
}

/* Ensure proper spacing for header */
@media (max-width: 768px) {
    .hero-section {
        padding: 140px 0 40px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: left;
        gap: 20px;
        align-items: flex-start;
    }
    
    .service-image {
        width: 180px;
        height: 180px;
    }
    
    .service-title {
        font-size: 2rem;
        text-align: left;
    }
    
    .service-info {
        text-align: left;
    }
    
    .booking-section {
        padding: 20px 0 60px;
    }
    
    .form-section {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .section-title h3 {
        font-size: 1.3rem;
    }
    
    .sidebar-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .pricing-option {
        padding: 16px;
    }
    
    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .option-details {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .service-title {
        font-size: 1.75rem;
    }
    
    .form-section {
        padding: 20px 16px;
    }
    
    .sidebar-card {
        padding: 16px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Custom Select Styling */
.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    min-height: 48px;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.custom-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: #f8fafc;
}

/* Datepicker Customization */
.datepicker {
    cursor: pointer;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.datepicker:focus {
    cursor: text;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: #f8fafc;
}

/* Image Preview Styling */
.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-preview-item button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e53e3e;
    font-size: 12px;
}

/* Header visibility and positioning */
.appie-header-area {
    position: relative;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.appie-header-area.appie-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Ensure main content doesn't overlap with fixed header */
.main-area {
    padding-top: 0;
}

/* Hide header button on booking page */
.header-nav-box .main-btn {
    display: none;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 30px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 24px 30px;
}

/* Checkout Modal Specific Styles */
#checkoutModal .modal-body {
    height: 80vh;
    overflow-y: auto;
}

#checkout {
    width: 100%;
    display: block;
}

#checkoutDetails {
    width: 100%;
    display: block;
}

.service-item .appie-single-service-2 > img {
    display: none;
}

.b-post-details {
    width: 100%;
}

.primaryPrice .hour {
    float: left;
    font-weight: 400;
}

.primaryPrice .price {
    float: right;
    font-weight: 400;
}

#checkoutDetails .b-post-details {
    padding: 30px 25px 7px;
}

#checkoutDetails .title {
    margin-bottom: 5px;
}

#checkoutDetails .primaryPrice {
    width: 100%;
    background: #000;
    padding: 10px;
    border-radius: 5px;
}

#checkoutDetails .blog-sidebar {
    margin: 0px;
}

#submitLater, #cashPayment {
    background-color: #0e1133;
    border-color: #0e1133;
    border-radius: 25px;
    width: 100%;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Responsive Checkout Modal */
@media (min-width: 768px) {
    .modal-dialog {
        max-width: 970px;
    }

    #checkoutDetails {
        float: left;
        max-width: 45%;
    }

    #checkout {
        float: right;
        max-width: 51%;
        border-left: 1px solid #eef1f6;
        padding-left: 30px;
    }

    .service-item .appie-single-service-2 > img {
        display: block;
    }
}

/* Image Upload Responsive */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .image-preview-item > img {
        width: 30%;
        height: 100px;
    }
}

@media (max-width: 767px) {
    .image-preview-item > img {
        width: 30%;
        height: 100px;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .image-preview-detials {
        width: 100%;
        display: block;
        float: left;
    }
} 

/* Payment Method Modal Styles */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.payment-option.recommended {
    border: 3px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.payment-option-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.payment-option-header input[type="radio"] {
    margin-top: 5px;
    accent-color: #10b981;
    transform: scale(1.2);
}

.payment-option-header label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.payment-option.recommended .payment-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.payment-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.payment-details p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.recommended-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-benefits {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.payment-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.9rem;
}

.payment-benefits li i {
    color: #10b981;
    font-size: 0.8rem;
}

.payment-notice {
    margin-top: 15px;
}

.notice-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #92400e;
}

.notice-warning i {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-top: 2px;
}

.notice-warning strong {
    font-weight: 600;
}

/* Mobile Responsive for Payment Modal */
@media (max-width: 768px) {
    .payment-option {
        padding: 15px;
    }
    
    .payment-option-header label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}