/* Booking Page Styles */

/* Navbar solid (not transparent for booking page) */
.navbar-solid {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
}

.navbar-solid .logo,
.navbar-solid .nav-menu a {
    color: var(--text-dark);
}

.navbar-solid .burger-menu span {
    background: var(--text-dark);
}

.navbar-solid .btn-reserve.active {
    background: var(--gold-gradient);
    color: var(--white);
}

/* Booking Section */
.booking-section {
    padding: 80px 0 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    min-height: 100vh;
}

.booking-header {
    text-align: center;
    margin-bottom: 60px;
}

.booking-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 32px;
    margin-top: 16px;
    text-align: center;
}

.booking-subtitle {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 300;
}

/* Error Message */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Erreur par champ */
.field-error {
    display: block;
    color: #d32f2f;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    padding-left: 4px;
}

.form-control.has-error {
    border-color: #d32f2f !important;
    background-color: #fef5f5;
}

/* Stepper */
.booking-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Make visited steps clickable */
.step.clickable {
    cursor: pointer;
}

.step.clickable:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(192, 159, 89, 0.3);
}

.step.clickable:hover .step-label {
    color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--gold-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.step-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 15px;
    position: relative;
    top: -15px;
}

.step.completed ~ .step-line {
    background: var(--primary-color);
}

/* Booking Form */
.booking-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 32px;
    text-align: center;
}

.prestations-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 30px 0 0;
    padding-bottom: 16px;
    text-align: left;
}

/* Prestation Type Selector */
.prestation-type-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.type-btn {
    padding: 15px 40px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.type-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.type-btn.active {
    background: var(--gold-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

/* Prestations Grid */
.prestations-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.prestation-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 220px;
}

.prestation-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.prestation-card.has-quantity {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    box-shadow: var(--shadow-gold);
}

.prestation-image {
    width: 240px;
    min-width: 240px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.prestation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.prestation-image.placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-light);
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.slider-image.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--secondary-color);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slider-nav:hover {
    background: rgba(212, 175, 55, 0.95);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* Show slider navigation on hover for desktop */
@media (min-width: 769px) {
    .prestation-card:hover .slider-nav {
        opacity: 1;
    }
}

/* Always show slider navigation on mobile/tablet */
@media (max-width: 768px) {
    .slider-nav {
        opacity: 0.8;
    }

    .slider-nav:active {
        opacity: 1;
    }
}

.prestation-content {
    flex: 1;
    padding: 16px 20px;
    padding-right: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.prestation-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.prestation-description {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

.prestation-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .prestation-price {
        width: 180px;
        margin-top: 10px;
    }
}

/* Prix "À partir de X€" : bloc compact, textes centrés l'un sous l'autre */
.prestation-price:has(.price-prefix) {
    display: inline-block;
    text-align: center;
    line-height: 1.1;
}

.prestation-price .price-prefix {
    display: block;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 2px;
    white-space: nowrap;
}

.prestation-price .price-value {
    display: block;
    line-height: 1;
}

.quantity-selector {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-btn:hover {
    background: var(--gold-gradient);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.quantity-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 40px;
    text-align: center;
}

/* Date Time Container */
.date-time-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

/* Calendar */
.calendar-container {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: capitalize;
    margin: 0;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.calendar-nav-btn:hover {
    background: var(--gold-gradient);
    color: var(--white);
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--white);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:not(.empty):not(.past):hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    transform: scale(1.05);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.today {
    border-color: var(--secondary-color);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--gold-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

/* Time Slots */
.time-slots-container {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 25px;
    display: none; /* Hidden by default - shown only when dates are selected */
}

.time-slots-container.visible {
    display: block;
}

.time-slots-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.time-slots-hint {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.time-slots-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Time Slots - Day Groups */
.time-slots-day-group,
.date-timeslots-block {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-slots-day-title,
.date-timeslots-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    text-transform: capitalize;
}

.time-slots-day-grid,
.time-slots-grid-date {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.time-slot {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--gold-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.time-slot.past {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.time-slot.past:hover {
    border-color: #e5e7eb;
    background: #f9fafb;
    transform: none;
}

/* Contact Form */
.contact-form {
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
}

.form-control {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-hint {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Address Suggestions */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
}

.address-suggestions.active {
    display: block;
}

.address-suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    padding-left: 24px;
}

.address-main {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.address-secondary {
    font-size: 13px;
    color: var(--text-light);
}

.form-group {
    position: relative;
}

/* Section Title (for Address section, etc.) */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 32px;
    margin-bottom: 20px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

/* When only one button (step 1), align to the right */
#step1 .form-actions {
    justify-content: flex-end;
}

.form-actions .btn {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 150px;
}

/* Override btn-outline for booking page (need dark text on light background) */
.booking-section .btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.booking-section .btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    pointer-events: none;
}

/* Button Loader Spinner */
.btn-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpinner 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Booking Summary */
.booking-summary {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 40px;
    padding-top: 8px;
}

.summary-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section:has(#summaryPrestations) {
    border-bottom: none;
}

.summary-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.summary-item p {
    margin: 4px 0;
}

.summary-item p:empty {
    display: none;
}

.summary-majorations {
    margin-top: 20px;
}

.majoration-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Summary Time Slots - Grouped by Day */
.summary-time-slots {
    margin-top: 12px;
}

.summary-day-group {
    margin-bottom: 20px;
}

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

.summary-day-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: capitalize;
    margin-bottom: 10px;
}

.summary-day-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}

.summary-time-slot-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

/* Summary Prestations List */
.summary-prestations-list {
    margin-top: 12px;
}

.summary-prestation-item {
    padding: 4px 0;
    font-size: 15px;
}

.prestation-quantity-name {
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

/* Summary Invoice (Devis) - Format PDF minimaliste */
.summary-invoice {
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.summary-invoice h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invoice-details {
    margin-bottom: 12px;
}

.invoice-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.6;
}

.invoice-line-label {
    color: var(--text-dark);
    font-weight: 400;
}

.invoice-line-amount {
    color: var(--text-dark);
    font-weight: 400;
    min-width: 60px;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.invoice-majoration {
    background: rgba(212, 175, 55, 0.08);
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.invoice-majoration .invoice-line-label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    padding-right: 10px;
}

.invoice-majoration .invoice-line-label small {
    color: rgba(212, 175, 55, 0.9);
    display: block;
    margin-top: 6px;
    line-height: 1.4;
}

.invoice-majoration .invoice-line-amount {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    align-self: flex-start;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 12px 0 8px 0;
    border-top: 2px solid var(--text-dark);
    margin-top: 8px;
}

.invoice-total-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

.invoice-total-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 60px;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.marriage-info-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #f9f5ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.marriage-info-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
}

.marriage-info-notice strong {
    color: var(--primary-color);
    font-weight: 600;
}

.invoice-hint {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    margin: 12px 0 0 0;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
}

.success-modal {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-gold);
}

.success-modal h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.success-modal p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.success-modal .btn {
    margin-top: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-section {
        padding: 80px 0 60px;
    }

    .booking-form {
        padding: 16px;
    }

    .booking-title {
        font-size: 22px;
    }

    .step-title {
        font-size: 22px;
    }

    .prestations-section-title {
        font-size: 20px;
    }

    .booking-stepper {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .step-label {
        font-size: 12px;
    }

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

    .calendar-month {
        font-size: 20px;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .calendar-weekday {
        font-size: 11px;
        padding: 6px;
    }

    .calendar-day {
        font-size: 14px;
    }

    .time-slots-day-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .time-slot {
        padding: 10px 8px;
        font-size: 13px;
    }

    .form-actions .btn {
        min-width: 120px;
        padding: 14px 24px;
        font-size: 15px;
    }

    .success-modal {
        margin: 20px;
        padding: 30px;
    }

    /* Responsive prestation cards - vertical layout on mobile */
    .prestation-card {
        flex-direction: column;
    }

    .prestation-image {
        width: 100%;
        height: 280px;
        min-height: 280px;
        min-width: unset;
    }

    .prestation-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 15%;
    }

    .prestation-image.placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .prestation-content {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    .prestation-info {
        padding-right: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        align-items: start;
    }

    .prestation-name {
        font-size: 16px;
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .prestation-price {
        font-size: 16px;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .prestation-description {
        font-size: 13px;
        grid-column: 1 / -1;
        grid-row: 2;
        line-height: 1.5;
        white-space: normal;
    }

    .quantity-selector {
        position: static;
        transform: none;
        margin-top: 12px;
        justify-content: center;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .quantity-value {
        font-size: 20px;
        min-width: 32px;
    }

    /* Summary prestation items on mobile */
    .summary-prestation-item .prestation-quantity-name {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Extra small devices (iPhone SE, iPhone XR and similar) */
@media (max-width: 450px) {
    .booking-form {
        padding: 16px;
    }

    .booking-title {
        font-size: 24px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-line {
        margin: 0 8px;
    }

    .prestation-image {
        height: 260px;
        min-height: 260px;
    }

    .prestation-content {
        padding: 18px;
    }

    .prestation-name {
        font-size: 15px;
    }

    .prestation-description {
        font-size: 12px;
    }

    .prestation-price {
        font-size: 15px;
    }

    .quantity-selector {
        gap: 8px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .quantity-value {
        font-size: 18px;
        min-width: 28px;
    }

    .type-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .calendar-container,
    .time-slots-container {
        padding: 18px;
    }

    .calendar-month {
        font-size: 18px;
    }

    .calendar-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .calendar-weekday {
        font-size: 10px;
        padding: 4px;
    }

    .calendar-day {
        font-size: 13px;
        border-radius: 8px;
    }

    .time-slots-title {
        font-size: 18px;
    }

    .time-slots-hint {
        font-size: 12px;
    }

    .time-slots-day-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .time-slot {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 8px;
    }

    /* Summary Time Slots Mobile */
    .summary-day-group {
        margin-bottom: 16px;
    }

    .summary-day-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .summary-day-slots {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        gap: 6px;
    }

    .summary-time-slot-card {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Summary Invoice Mobile */
    .summary-invoice {
        padding-top: 16px;
    }

    .summary-invoice h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .invoice-line {
        font-size: 14px;
        padding: 4px 0;
    }

    .invoice-line-amount {
        min-width: 70px;
    }

    .invoice-majoration {
        padding: 8px;
    }

    .invoice-total {
        padding: 10px 0 6px 0;
        margin-top: 6px;
    }

    .invoice-total-label {
        font-size: 13px;
    }

    .invoice-total-amount {
        font-size: 14px;
        min-width: 70px;
    }

    .marriage-info-notice {
        margin-top: 12px;
        padding: 10px 12px;
    }

    .marriage-info-notice p {
        font-size: 12px;
        line-height: 1.5;
    }

    .invoice-hint {
        font-size: 11px;
        margin-top: 10px;
    }

    .booking-summary {
        padding: 20px;
        padding-top: 8px;
    }

    .summary-prestation-item {
        font-size: 14px;
        gap: 8px;
    }

    .summary-prestation-item .prestation-price {
        font-size: 14px;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    z-index: 1;
}

.image-modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.image-modal-close:hover {
    background: var(--gold-gradient);
    border-color: var(--primary-color);
    transform: rotate(90deg);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .image-modal-content {
        padding: 50px 10px 10px;
    }

    .image-modal-img {
        max-width: 95%;
        max-height: 95%;
    }
}
