/* Birthday Party Management - Public Form Styles */

.bpm-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bpm-form-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.bpm-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bpm-fieldset {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fafbfc;
}

.bpm-legend {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding: 0 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    display: block;
    width: 100%;
}

.bpm-description {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.bpm-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 15px;
}

.bpm-field {
    flex: 1;
    min-width: 200px;
}

.bpm-field-half {
    flex: 0 0 calc(50% - 7.5px);
}

.bpm-field-full {
    flex: 0 0 100%;
}

.bpm-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.bpm-label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.bpm-input,
.bpm-textarea,
.bpm-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.bpm-input:focus,
.bpm-textarea:focus,
.bpm-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.bpm-textarea {
    resize: vertical;
    min-height: 80px;
}

.bpm-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.bpm-checkbox {
    margin-right: 8px;
    transform: scale(1.2);
}

.bpm-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.bpm-button-primary {
    background: #3498db;
    color: white;
}

.bpm-button-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.bpm-button-secondary {
    background: #95a5a6;
    color: white;
    margin-top: 10px;
}

.bpm-button-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.bpm-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.bpm-form-messages {
    margin-bottom: 20px;
}

.bpm-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

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

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

.bpm-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Pickup Persons Styles */
.pickup-person {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

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

.pickup-person-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.remove-pickup-person {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.remove-pickup-person:hover {
    background: #c0392b;
}

/* Waiver Text Styles */
.bpm-waiver-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    max-height: 200px;
    overflow-y: auto;
}

.bpm-waiver-text p {
    margin-bottom: 10px;
}

.bpm-waiver-text p:last-child {
    margin-bottom: 0;
}

/* Loading State */
.bpm-form.loading .bpm-button-primary {
    opacity: 0.7;
    cursor: not-allowed;
}

.bpm-form.loading .bpm-button-primary::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpm-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .bpm-row {
        flex-direction: column;
    }
    
    .bpm-field-half {
        flex: 0 0 100%;
    }
    
    .bpm-form-title {
        font-size: 24px;
    }
    
    .bpm-fieldset {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .bpm-form-container {
        margin: 5px;
        padding: 10px;
    }
    
    .bpm-fieldset {
        padding: 15px 10px;
    }
    
    .bpm-button {
        width: 100%;
        justify-content: center;
    }
}

/* Datepicker Styles */
.ui-datepicker {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}

.ui-datepicker-header {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px 6px 0 0;
}

.ui-datepicker-title {
    font-weight: 600;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    color: white;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ui-datepicker-calendar th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

.ui-datepicker-calendar td a {
    color: #2c3e50;
    text-decoration: none;
}

.ui-datepicker-calendar td a:hover {
    background: #3498db;
    color: white;
}

.ui-datepicker-calendar td.ui-datepicker-today a {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

.ui-datepicker-calendar td.ui-datepicker-current-day a {
    background: #3498db;
    color: white;
    font-weight: bold;
}
