/**
 * Booking Form Template CSS
 * Theme: Holiday Junction - Matching Tour Packages design
 */

/* Root Variables - Matching existing theme */
:root {
    --hjn-primary: #edc43f;
    --hjn-primary-light: #f5d563;
    --hjn-primary-dark: #d4a832;
    --hjn-orange: #ff6b35;
    --hjn-orange-dark: #e55a2b;
    --hjn-text-dark: #1b1430;
    --hjn-text-muted: #4b3b5a;
    --hjn-bg-light: #fdfbf7;
    --hjn-bg-cream: #faf7f0;
    --hjn-white: #ffffff;
    --hjn-error: #dc3545;
    --hjn-success: #28a745;
    --hjn-shadow: 0 10px 40px rgba(237, 196, 63, 0.15);
    --hjn-shadow-hover: 0 15px 50px rgba(237, 196, 63, 0.25);
    --hjn-transition: all 0.3s ease;
    --hjn-radius: 14px;
    --hjn-radius-sm: 8px;
}

/* Main Wrapper */
.hjn-booking-wrapper {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, var(--hjn-bg-light), var(--hjn-bg-cream));
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hjn-booking-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Booking Header */
.hjn-booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.hjn-booking-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--hjn-primary), var(--hjn-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--hjn-white);
    box-shadow: 0 15px 40px rgba(237, 196, 63, 0.35);
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hjn-booking-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--hjn-primary);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.hjn-booking-subtitle {
    font-size: 16px;
    color: var(--hjn-text-muted);
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Selected Package Display */
.hjn-selected-package {
    background: linear-gradient(135deg, var(--hjn-primary), var(--hjn-primary-light));
    border-radius: var(--hjn-radius);
    padding: 25px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(237, 196, 63, 0.3);
    position: relative;
    overflow: hidden;
}

.hjn-selected-package::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hjn-selected-package-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.hjn-selected-package-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--hjn-white);
    position: relative;
    z-index: 1;
}

/* Form Styles */
.hjn-booking-form {
    background: var(--hjn-white);
    border-radius: var(--hjn-radius);
    padding: 35px;
    box-shadow: var(--hjn-shadow);
}

/* Form Sections */
.hjn-form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(237, 196, 63, 0.1);
}

.hjn-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
    padding-bottom: 0;
}

.hjn-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--hjn-text-dark);
    margin: 0 0 25px 0;
}

.hjn-section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(237, 196, 63, 0.15), rgba(237, 196, 63, 0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hjn-primary);
}

/* Form Rows */
.hjn-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

@media (max-width: 640px) {
    .hjn-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Form Groups */
.hjn-form-group {
    position: relative;
}

.hjn-form-group.hjn-form-full {
    grid-column: 1 / -1;
}

.hjn-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hjn-text-dark);
    margin-bottom: 10px;
}

.hjn-label-icon {
    color: var(--hjn-primary);
    display: flex;
    align-items: center;
}

.hjn-required {
    color: var(--hjn-error);
    font-weight: 700;
}

/* Input Styles */
.hjn-form-group input[type="text"],
.hjn-form-group input[type="email"],
.hjn-form-group input[type="tel"],
.hjn-form-group input[type="date"],
.hjn-form-group select,
.hjn-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e4df;
    border-radius: var(--hjn-radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--hjn-text-dark);
    background: var(--hjn-white);
    transition: var(--hjn-transition);
    outline: none;
}

.hjn-form-group input::placeholder,
.hjn-form-group textarea::placeholder {
    color: #a09890;
}

.hjn-form-group input:focus,
.hjn-form-group select:focus,
.hjn-form-group textarea:focus {
    border-color: var(--hjn-primary);
    box-shadow: 0 0 0 4px rgba(237, 196, 63, 0.15);
}

.hjn-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23edc43f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

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

/* Error States */
.hjn-form-group.hjn-has-error input,
.hjn-form-group.hjn-has-error select,
.hjn-form-group.hjn-has-error textarea {
    border-color: var(--hjn-error);
    background-color: #fff8f8;
}

.hjn-form-group.hjn-has-error input:focus,
.hjn-form-group.hjn-has-error select:focus,
.hjn-form-group.hjn-has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.hjn-error-message {
    display: block;
    font-size: 12px;
    color: var(--hjn-error);
    margin-top: 6px;
    font-weight: 500;
}

/* Submit Button */
.hjn-form-submit {
    text-align: center;
    margin-top: 30px;
}

.hjn-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--hjn-orange), var(--hjn-orange-dark));
    color: var(--hjn-white);
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--hjn-transition);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.35);
    position: relative;
    overflow: hidden;
}

.hjn-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hjn-submit-btn:hover::before {
    left: 100%;
}

.hjn-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.45);
}

.hjn-submit-btn:active {
    transform: translateY(-1px);
}

.hjn-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hjn-btn-loader {
    animation: spin 1s linear infinite;
}

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

/* Form Messages */
.hjn-form-message {
    padding: 18px 25px;
    border-radius: var(--hjn-radius-sm);
    margin-top: 25px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.hjn-message-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hjn-message-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Decorative Elements */
.hjn-booking-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.hjn-decoration-1 {
    top: 10%;
    right: -40px;
    animation: floatDecor1 8s ease-in-out infinite;
}

.hjn-decoration-2 {
    bottom: 15%;
    left: -30px;
    animation: floatDecor2 6s ease-in-out infinite;
}

@keyframes floatDecor1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes floatDecor2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-5deg); }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .hjn-booking-wrapper {
        padding: 25px 15px;
    }

    .hjn-booking-icon {
        width: 80px;
        height: 80px;
    }

    .hjn-booking-icon svg {
        width: 45px;
        height: 45px;
    }

    .hjn-booking-title {
        font-size: 26px;
    }

    .hjn-booking-subtitle {
        font-size: 14px;
    }

    .hjn-booking-form {
        padding: 25px 20px;
    }

    .hjn-form-section-title {
        font-size: 16px;
    }

    .hjn-section-icon {
        width: 35px;
        height: 35px;
    }

    .hjn-selected-package {
        padding: 20px;
    }

    .hjn-selected-package-title {
        font-size: 18px;
    }

    .hjn-submit-btn {
        padding: 15px 40px;
        font-size: 15px;
        width: 100%;
    }

    .hjn-booking-decoration {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hjn-booking-container {
        max-width: 700px;
    }
}

/* Focus States for Accessibility */
.hjn-submit-btn:focus {
    outline: 3px solid var(--hjn-primary-light);
    outline-offset: 3px;
}

.hjn-form-group input:focus-visible,
.hjn-form-group select:focus-visible,
.hjn-form-group textarea:focus-visible {
    outline: none;
}

/* Print Styles */
@media print {
    .hjn-booking-wrapper {
        background: white;
        padding: 20px;
    }

    .hjn-booking-decoration {
        display: none;
    }

    .hjn-submit-btn {
        display: none;
    }
}
