/* =============================================
   Customize Tour - Frontend Styles
   Rajasthan Yatra Booking Form
   ============================================= */

/* CSS Variables */
:root {
    --ct-maroon: #6B1D2A;
    --ct-maroon-light: rgba(107, 29, 42, 0.05);
    --ct-maroon-20: rgba(107, 29, 42, 0.2);
    --ct-gold: #D4A853;
    --ct-gold-light: #E8C97A;
    --ct-saffron: #E07B39;
    --ct-sand-light: #FAF8F5;
    --ct-white: #ffffff;
    --ct-gray-200: #e5e7eb;
    --ct-gray-600: #4b5563;
    --ct-gray-700: #374151;
    --ct-font-serif: Georgia, 'Times New Roman', serif;
    --ct-font-display: Georgia, 'Times New Roman', serif;
}

/* Section */
.ct-section {
    padding: 64px 16px;
    background-color: var(--ct-maroon-light);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.ct-section *,
.ct-section *::before,
.ct-section *::after {
    box-sizing: border-box;
}

/* Container */
.ct-container {
    max-width: 1152px;
    margin: 0 auto;
}

/* Header */
.ct-header {
    text-align: center;
    margin-bottom: 48px;
}

.ct-title {
    font-size: 2.25rem;
    color: var(--ct-maroon);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.ct-subtitle {
    color: var(--ct-gray-600);
    font-family: var(--ct-font-serif);
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}

/* Grid Layout */
.ct-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

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

/* Form Card */
.ct-form-card {
    background: var(--ct-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Form Groups */
.ct-form-group {
    margin: 0;
}

.ct-form-label {
    font-size: 1.25rem;
    font-family: var(--ct-font-serif);
    color: var(--ct-maroon);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 0;
}

/* Icons */
.ct-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ct-icon-saffron {
    color: var(--ct-saffron);
}

/* Destination Buttons Grid */
.ct-dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .ct-dest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ct-dest-btn {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--ct-maroon-20);
    background-color: var(--ct-sand-light);
    color: var(--ct-gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.ct-dest-btn:hover {
    border-color: var(--ct-maroon);
}

.ct-dest-btn.ct-dest-active {
    background-color: var(--ct-maroon);
    color: var(--ct-white);
    border-color: var(--ct-maroon);
    box-shadow: 0 4px 12px rgba(107, 29, 42, 0.3);
    transform: scale(1.02);
}

/* Form Row */
.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .ct-form-row {
        grid-template-columns: 1fr;
    }
}

/* Range Slider */
.ct-range {
    width: 100%;
    accent-color: var(--ct-maroon);
    height: 6px;
    cursor: pointer;
}

.ct-range-value {
    text-align: center;
    margin-top: 8px;
    font-weight: 700;
    color: var(--ct-maroon);
    font-size: 14px;
}

/* Select */
.ct-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--ct-maroon-20);
    background-color: var(--ct-sand-light);
    color: var(--ct-gray-700);
    font-size: 14px;
    cursor: pointer;
    appearance: auto;
    outline: none;
    transition: border-color 0.3s ease;
}

.ct-select:focus {
    border-color: var(--ct-maroon);
    box-shadow: 0 0 0 3px rgba(107, 29, 42, 0.1);
}

/* Hotel Buttons */
.ct-hotel-buttons {
    display: flex;
    gap: 16px;
}

.ct-hotel-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--ct-gray-200);
    background-color: var(--ct-white);
    color: var(--ct-gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 640px) {
    .ct-hotel-buttons {
        flex-direction: column;
    }
}

.ct-hotel-btn:hover {
    border-color: var(--ct-gold);
}

.ct-hotel-btn.ct-hotel-active {
    background-color: var(--ct-gold);
    color: var(--ct-maroon);
    font-weight: 700;
    border-color: var(--ct-gold);
}

/* Customer Section */
.ct-customer-section {
    border-top: 2px solid rgba(212, 168, 83, 0.2);
    padding-top: 24px;
}

.ct-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ct-input-grid .ct-input-group:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .ct-input-grid {
        grid-template-columns: 1fr;
    }
    .ct-input-grid .ct-input-group:last-child {
        grid-column: auto;
    }
}

.ct-input-group label {
    display: block;
    font-size: 13px;
    color: var(--ct-gray-600);
    margin-bottom: 6px;
    font-weight: 500;
}

.ct-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--ct-maroon-20);
    background-color: var(--ct-sand-light);
    color: var(--ct-gray-700);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ct-input:focus {
    border-color: var(--ct-maroon);
    box-shadow: 0 0 0 3px rgba(107, 29, 42, 0.1);
}

.ct-input::placeholder {
    color: #9CA3AF;
}

/* Summary Card */
.ct-summary-column {
    position: relative;
}

.ct-summary-card {
    background-color: var(--ct-maroon);
    color: var(--ct-sand-light);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    position: sticky;
    top: 32px;
    min-height: 450px;
}

.ct-summary-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url('https://www.transparenttextures.com/patterns/black-scales.png');
    pointer-events: none;
}

.ct-summary-content {
    position: relative;
    z-index: 10;
    flex: 1;
}

.ct-summary-title {
    font-size: 1.5rem;
    font-family: var(--ct-font-display);
    margin-bottom: 24px;
    color: var(--ct-gold);
    margin-top: 0;
    font-weight: 600;
}

/* Summary Items */
.ct-summary-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 14px;
    opacity: 0.9;
}

.ct-summary-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.ct-capitalize {
    text-transform: capitalize;
}

/* Summary Total */
.ct-summary-total {
    text-align: center;
}

.ct-total-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.ct-total-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ct-gold);
    margin-bottom: 8px;
    line-height: 1.2;
}

.ct-total-note {
    font-size: 12px;
    opacity: 0.6;
}

/* Book Button */
.ct-book-btn {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 32px;
    padding: 16px;
    background: linear-gradient(135deg, var(--ct-gold), var(--ct-gold-light));
    color: var(--ct-maroon);
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.ct-book-btn:hover {
    transform: scale(1.05);
}

.ct-book-btn:active {
    transform: scale(0.98);
}

.ct-book-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Message */
.ct-message {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    animation: ct-fadeIn 0.4s ease;
}

.ct-message-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.ct-message-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* Loading */
.ct-loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}

.ct-loading p {
    color: var(--ct-white);
    font-size: 16px;
    margin-top: 16px;
    font-weight: 500;
}

.ct-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--ct-gold);
    border-radius: 50%;
    animation: ct-spin 0.8s linear infinite;
}

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

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

/* Success Overlay */
.ct-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(6px);
    animation: ct-fadeIn 0.3s ease;
}

.ct-success-box {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: ct-scaleIn 0.4s ease;
}

.ct-success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.ct-success-box h3 {
    color: var(--ct-maroon);
    font-size: 22px;
    margin: 0 0 8px;
}

.ct-success-box .ct-booking-ref {
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin: 12px 0;
}

.ct-success-box p {
    color: var(--ct-gray-600);
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
}

.ct-success-close {
    margin-top: 20px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--ct-maroon), #8B2252);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ct-success-close:hover {
    transform: scale(1.05);
}

@keyframes ct-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
