/**
 * Public Styles
 *
 * @package WP_Event_Manager
 */

/* Registration Form */
.event-registration-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.event-registration-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.required {
    color: #d63638;
}

/* Timeslots */
.timeslots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeslot-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeslot-option:hover {
    border-color: #0073aa;
    background: #f5f5f5;
}

.timeslot-option input[type="radio"] {
    margin-right: 10px;
}

.timeslot-option.timeslot-unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeslot-option.timeslot-unavailable:hover {
    border-color: #ddd;
    background: #fff;
}

.timeslot-time {
    flex: 1;
    font-weight: 600;
}

.timeslot-capacity {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
}

.timeslot-status {
    margin-left: 10px;
    padding: 2px 8px;
    background: #d63638;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.timeslot-date-group {
    margin-top: 20px;
}

.timeslot-date-group:first-child {
    margin-top: 0;
}

.timeslot-date-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
}

/* Components */
.components-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.component-option {
    display: block;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.component-option:hover {
    border-color: #0073aa;
    background: #f5f5f5;
}

.component-option input[type="checkbox"] {
    margin-right: 10px;
}

.component-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.component-required {
    color: #d63638;
    font-size: 14px;
}

.component-cost {
    margin-left: auto;
    font-weight: 600;
    color: #0073aa;
}

.component-description {
    margin: 10px 0 0 0;
    padding-left: 30px;
    color: #666;
    font-size: 14px;
}

/* Custom Questions */
.custom-question {
    margin-bottom: 20px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Summary */
#registration-summary {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}

#registration-summary p {
    margin: 0;
    font-size: 18px;
}

#total-cost {
    color: #0073aa;
    font-size: 24px;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.form-actions button {
    padding: 15px 40px;
    font-size: 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-actions button:hover {
    background: #005177;
}

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

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

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

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

/* Event Full Message */
.event-registration-full {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
}

/* Attendee Rows */
.attendee-row {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.attendee-header strong {
    font-size: 16px;
}

.attendee-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.attendee-fields .form-field:last-child {
    grid-column: 1 / -1;
}

.add-attendee {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.add-attendee:hover {
    background: #005177;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .event-registration-form {
        padding: 20px;
    }

    .component-info {
        flex-wrap: wrap;
    }

    .component-cost {
        margin-left: 0;
    }

    .attendee-fields {
        grid-template-columns: 1fr;
    }

    .attendee-fields .form-field:last-child {
        grid-column: 1;
    }
}
