/* Base styles for the form */
#tour-planner-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* Form sections */
.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form headings */
#tour-planner-form-wrapper h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* Labels */
.form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

/* Checkbox label special styling */
.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    font-weight: normal !important;
    line-height: 1.4;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

/* Form inputs */
.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="number"],
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-section input[type="text"]:focus,
.form-section input[type="email"]:focus,
.form-section input[type="number"]:focus,
.form-section select:focus,
.form-section textarea:focus {
    border-color: #6b7e6a;
    box-shadow: 0 0 0 3px rgba(107, 126, 106, 0.2);
    outline: none;
}

/* Submit button */
.form-section input[type="submit"] {
    background-color: #6b7e6a;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

.form-section input[type="submit"]:hover {
    background-color: #5a6b59;
}

/* Message styling */
#tour-planner-form-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
}

#tour-planner-form-messages.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#tour-planner-form-messages.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Success message styling */
#tour-planner-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#tour-planner-success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #155724;
}

/* Hotel items styling */
.hotel-item {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
}

.hotel-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hotel-item img {
    max-width: 120px;
    height: auto;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.hotel-item .hotel-details {
    flex: 1;
    min-width: 200px;
}

.hotel-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.hotel-star-rating {
    color: #FFD700;
    font-size: 18px;
    margin: 8px 0;
}

/* jQuery UI Datepicker customization */
.ui-datepicker {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.ui-datepicker .ui-datepicker-header {
    background: #6b7e6a;
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 10px;
    position: relative;
}

.ui-datepicker .ui-datepicker-title {
    text-align: center;
    font-weight: bold;
    margin: 0 30px;
    font-size: 16px;
    line-height: 1.8;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker .ui-datepicker-next {
    right: 10px;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -8px;
}

.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ui-datepicker th {
    text-align: center;
    font-weight: bold;
    padding: 8px 0;
    color: #555;
    border: 0;
}

.ui-datepicker td {
    border: 0;
    padding: 1px;
    text-align: center;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
}

.ui-datepicker td a.ui-state-default {
    background: #f5f5f5;
}

.ui-datepicker td a.ui-state-default:hover {
    background: #e9e9e9;
}

.ui-datepicker td a.ui-state-active {
    background: #6b7e6a;
    color: white;
}

.ui-datepicker td a.ui-state-highlight {
    background: #d4edda;
    color: #155724;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-section {
        padding: 15px;
    }
    
    #tour-planner-form-wrapper h2 {
        font-size: 24px;
    }
    
    .form-section input[type="submit"] {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .ui-datepicker {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .hotel-item {
        flex-direction: column;
    }
    
    .hotel-item img {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 100%;
    }
    
    .form-section label {
        font-size: 14px;
    }
    
    .form-section input[type="text"],
    .form-section input[type="email"],
    .form-section input[type="number"],
    .form-section select,
    .form-section textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    #tour-planner-success-message h3 {
        font-size: 20px;
    }
}
