/**
 * ATS Group Reservation Form Styles
 */

/* Container */
.ats-group-reservation-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Form sections */
.ats-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ats-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Form rows */
.ats-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.ats-form-field {
    flex: 1 1 300px;
    padding: 0 10px;
    margin-bottom: 15px;
}

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

/* Form controls */
.ats-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.ats-form-field input,
.ats-form-field select,
.ats-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
}

.ats-form-field input:focus,
.ats-form-field select:focus,
.ats-form-field textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.ats-form-field input.ats-error,
.ats-form-field select.ats-error,
.ats-form-field textarea.ats-error {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

/* Traveler categories */
.ats-traveler-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ats-traveler-info {
    display: flex;
    flex-direction: column;
}

.ats-traveler-name {
    font-weight: 500;
    color: #333;
}

.ats-traveler-price {
    color: #666;
    font-size: 0.9em;
}

.ats-traveler-controls {
    display: flex;
    align-items: center;
}

.ats-decrease-btn,
.ats-increase-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.2s;
}

.ats-decrease-btn:hover,
.ats-increase-btn:hover {
    background-color: #f5f5f5;
}

.ats-decrease-btn:disabled,
.ats-increase-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ats-traveler-count {
    margin: 0 10px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.ats-capacity-info {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
    text-align: right;
}

/* Price summary */
.ats-price-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.ats-price-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.ats-total-price {
    font-size: 1.5em;
    font-weight: 700;
    color: #2ecc71;
    text-align: right;
}

/* Form actions */
.ats-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
}

.ats-submit-button {
    padding: 12px 24px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ats-submit-button:hover {
    background-color: #3a80d2;
}

.ats-submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ats-loading {
    margin-left: 15px;
    color: #666;
}

.ats-loading-travelers {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Messages */
.ats-error-message,
.ats-success-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .ats-form-row {
        flex-direction: column;
    }
    
    .ats-form-field {
        flex: 1 1 100%;
    }
    
    .ats-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ats-loading {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
}
