/**
 * Event Booking Form Widget Styles
 */

/* Container */
.event-booking-form {
    width: 100%;
    max-width: 100%;
    background-color: #000;
    color: #fff;
}

.event-booking-form-wrapper {
    width: 100%;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px;
    color: #fff;
}

/* Form Rows */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
    box-sizing: border-box;
}

.form-field.full-width {
    width: 100%;
}

.form-field.half-width {
    width: 50%;
}

/* Input styles */
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.form-field select::placeholder {
    color: #aaa;
    opacity: 1;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #fff;
}

/* Date/Time Fields */
.event-date-container {
    margin-bottom: 20px;
}

.event-date-row {
    position: relative;
    margin-bottom: 15px;
}

.event-date-row .form-row {
    margin-bottom: 0;
}

.date-field {
    width: 40%;
}

.time-field {
    width: 30%;
}

/* Make date and time inputs more clickable */
input[type="date"],
input[type="time"] {
    cursor: pointer; /* Show pointer cursor to indicate clickable */
    position: relative;
}

/* Style calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Make icon white */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.8;
}

/* Highlight on hover */
input[type="date"]:hover,
input[type="time"]:hover {
    border-color: #fff;
}

/* Firefox specific styles */
@-moz-document url-prefix() {
    input[type="date"],
    input[type="time"] {
        position: relative;
    }

    input[type="date"]::after,
    input[type="time"]::after {
        content: "\f073"; /* Calendar icon - using a Unicode character */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        pointer-events: none;
    }
}

/* Add Date Button */
.add-date-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    margin: 10px 0;
}

.add-date-btn .btn-text {
    margin-right: 10px;
}

.add-date-btn .btn-icon {
    font-size: 20px;
    line-height: 1;
    margin-left: 5px;
}

.add-date-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Remove Date Button */
.remove-date-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.remove-date-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Studio Selection */
.studio-options {
    display: flex;
    flex-wrap: wrap;

}

.studio-option {
    display: block;
    position: relative;
    padding: 15px;
    border: 1px solid #fff;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.studio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.studio-name {
    display: block;
    padding: 0;
    color: #fff;
    text-align: center;
    transition: color 0.3s ease;
}

/* Hover effect */
.studio-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active (selected) state */
.studio-option.active {
    background-color: #fff !important;
    border-color: #fff !important;
}

.studio-option.active .studio-name {
    color: #000 !important;
    font-weight: bold;
}

/* For radio buttons - remove these as they don't work properly with our structure */
.studio-option input[type="radio"]:checked + .studio-name {
    font-weight: bold;
}

.studio-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Message textarea */
.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
.submit-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.form-submit-btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #e6e6e6;
}

/* Form Messages */
.form-messages {
    margin-top: 20px;
}

.form-message {
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    background-color: rgba(0, 128, 0, 0.1);
    color: #00cc00;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff6666;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .form-field.half-width {
        width: 100%;
    }
    
    .date-field,
    .time-field {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .event-date-row .form-row {
        flex-direction: column;
    }
    
    .remove-date-btn {
        top: 15px;
        right: 10px;
        transform: none;
    }
    
    .studio-options .form-field.half-width {
        width: 100%;
    }
} 