/* Tour Booking Form Styles */
.tour-booking-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.tour-booking-form .form-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.tour-booking-form .form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.tour-booking-form .form-label i {
    color: #3498db;
    width: 20px;
}

.tour-booking-form .form-control,
.tour-booking-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    height: 48px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.tour-booking-form .form-control:focus,
.tour-booking-form .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    transform: translateY(-1px);
    color: #2c3e50;
    font-weight: 500;
}

/* Style for focused input text */
.tour-booking-form .form-control:focus {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* Enhanced select styling */
.tour-booking-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233498db' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
}

.tour-booking-form .form-select:focus {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232980b9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Beautiful option styling */
.tour-booking-form .form-select option {
    padding: 12px 15px;
    color: #2c3e50;
    background: #ffffff;
    font-weight: 500;
    line-height: 1.5;
}

.tour-booking-form .form-select option:hover {
    background: #ecf0f1;
    color: #3498db;
}

.tour-booking-form .form-select option:checked {
    background: #3498db;
    color: #ffffff;
    font-weight: 600;
}

.tour-booking-form .form-select option:disabled {
    color: #95a5a6;
    font-style: italic;
    font-weight: 400;
    background: #f8f9fa;
}

/* Enhanced input text when typing */
.tour-booking-form .form-control {
    color: #2c3e50;
    font-weight: 500;
}

.tour-booking-form .form-control:not(:placeholder-shown) {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    font-weight: 600;
    color: #2c3e50;
}

/* Number input styling */
.tour-booking-form input[type="number"]:not(:placeholder-shown) {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #3498db;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    height: 48px !important;
}

/* Date input styling */
.tour-booking-form input[type="date"]:not(:placeholder-shown),
.tour-booking-form input[type="date"]:focus {
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
}

/* Email and tel input styling */
.tour-booking-form input[type="email"]:not(:placeholder-shown),
.tour-booking-form input[type="tel"]:not(:placeholder-shown) {
    font-weight: 600;
    color: #2c3e50;
    background: #ffffff;
}

/* Text input styling */
.tour-booking-form input[type="text"]:not(:placeholder-shown) {
    font-weight: 600;
    color: #2c3e50;
    background: #ffffff;
}

/* Textarea styling */
.tour-booking-form textarea:not(:placeholder-shown) {
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    line-height: 1.6;
}

.tour-booking-form textarea:focus {
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
}

/* Animation for text appearance */
.tour-booking-form .form-control,
.tour-booking-form .form-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom styling for selected state */
.tour-booking-form .form-control:valid:not(:placeholder-shown) {
    border-color: #e9ecef;
    background: #ffffff;
    color: #2c3e50;
    font-weight: 600;
}

.tour-booking-form .form-control:valid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
    border-color: #3498db;
}

/* Invalid state styling */
.tour-booking-form .form-control:invalid:not(:placeholder-shown) {
    color: #e74c3c;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #fdf2f2);
    border-color: #e74c3c;
}

.tour-booking-form .form-group:has(.form-control:invalid:not(:placeholder-shown)) .form-label i {
    color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

/* Loading state */
.tour-booking-form .btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.tour-booking-form .btn-primary.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-booking-form {
        padding: 20px;
        margin: 0 10px;
    }
    
    .tour-booking-form .form-title {
        font-size: 1.3rem;
    }
}

/* Beautiful label animation when focus */
.tour-booking-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.tour-booking-form .form-label {
    transition: all 0.3s ease;
    transform-origin: left;
}

.tour-booking-form .form-control:focus + .form-label,
.tour-booking-form .form-select:focus + .form-label {
    color: #3498db;
    transform: scale(1.05);
}

/* Floating effect for focused elements */
.tour-booking-form .form-control:focus,
.tour-booking-form .form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

/* Beautiful gradient text for different input types */
.tour-booking-form .form-control:focus::selection {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: #ffffff;
}

/* Custom scrollbar for select options */
.tour-booking-form .form-select::-webkit-scrollbar {
    width: 8px;
}

.tour-booking-form .form-select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tour-booking-form .form-select::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 4px;
}

.tour-booking-form .form-select::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* Pulse animation for required fields */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.tour-booking-form .form-control:focus:required,
.tour-booking-form .form-select:focus:required {
    animation: pulse-border 1.5s infinite;
}

/* Text glow effect when typing */
.tour-booking-form .form-control:not(:placeholder-shown):focus {
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

/* Enhanced typography for better readability */
.tour-booking-form input,
.tour-booking-form select,
.tour-booking-form textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

/* Beautiful placeholder animation */
@keyframes placeholder-shimmer {
    0% { color: #bdc3c7; }
    50% { color: #95a5a6; }
    100% { color: #bdc3c7; }
}

.tour-booking-form .form-control:focus::placeholder {
    animation: placeholder-shimmer 2s ease-in-out infinite;
}

/* Warning state for partially filled forms */
.tour-booking-form .form-control:focus:placeholder-shown {
    border-color: #f39c12;
    background: linear-gradient(135deg, #ffffff, #fffaf0);
}

/* Beautiful text formatting for different input types */
.tour-booking-form input[type="email"]:not(:placeholder-shown) {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #2c3e50;
}

.tour-booking-form input[type="tel"]:not(:placeholder-shown) {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #2c3e50;
    font-weight: 600;
}

.tour-booking-form input[type="text"]:not(:placeholder-shown) {
    color: #2c3e50;
    font-weight: 600;
    text-transform: capitalize;
}

/* Date input with beautiful formatting */
.tour-booking-form input[type="date"]:not(:placeholder-shown) {
    color: #e74c3c;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

/* Number inputs with centered, bold text */
.tour-booking-form input[type="number"]:not(:placeholder-shown) {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #3498db;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    border-color: #3498db;
    height: 48px !important;
}

/* Select with beautiful option display */
.tour-booking-form .form-select:not([value=""]) {
    color: #2c3e50;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-color: #3498db;
}

/* Textarea with beautiful text formatting */
.tour-booking-form textarea:not(:placeholder-shown) {
    line-height: 1.7;
    color: #2c3e50;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* Icon color changes based on input state */
.tour-booking-form .form-group:has(.form-control:not(:placeholder-shown)) .form-label i,
.tour-booking-form .form-group:has(.form-select:not([value=""])) .form-label i {
    color: #3498db;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.tour-booking-form .form-group:has(.form-control:focus) .form-label i,
.tour-booking-form .form-group:has(.form-select:focus) .form-label i {
    color: #3498db;
    transform: scale(1.2) rotate(5deg);
    transition: all 0.3s ease;
}

/* Ensure consistent height for all inputs */
.tour-booking-form input[type="text"],
.tour-booking-form input[type="email"],
.tour-booking-form input[type="tel"],
.tour-booking-form input[type="date"],
.tour-booking-form input[type="number"],
.tour-booking-form .form-select {
    height: 48px !important;
    min-height: 48px;
    box-sizing: border-box;
}

/* Textarea height adjustment */
.tour-booking-form textarea {
    min-height: 100px;
    height: auto;
    resize: vertical;
}

/* Consistent vertical alignment */
.tour-booking-form .form-control,
.tour-booking-form .form-select {
    display: flex;
    align-items: center;
}

/* Additional height consistency fixes */
.tour-booking-form .form-control::placeholder {
    line-height: 1.5;
    vertical-align: middle;
}

.tour-booking-form .form-select option {
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
}

/* Ensure button has consistent height too */
.tour-booking-form .btn-primary {
    height: 54px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
