/* Birthday Party Management - Frontend Styles */

.bpm-registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bpm-registration-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.bpm-form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 20px;
}

.bpm-form-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.bpm-form-section {
    margin-bottom: 30px;
}

.bpm-form-section h3 {
    color: #34495e;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e5e9;
}

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

.bpm-form-row .bpm-form-field {
    flex: 1;
}

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

.bpm-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.bpm-form-field input,
.bpm-form-field select,
.bpm-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.bpm-form-field input[type="date"],
.bpm-form-field input[type="time"] {
    padding: 10px;
}

.bpm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.bpm-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.bpm-checkbox-text {
    line-height: 1.5;
}

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

.bpm-button {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

.bpm-button-secondary {
    background-color: #95a5a6;
    color: white;
}

.bpm-button-secondary:hover {
    background-color: #7f8c8d;
}

/* Pickup Persons Section */
.pickup-person-entry {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e1e5e9;
}

.pickup-person-entry:last-child {
    margin-bottom: 0;
}

#add-pickup-person {
    margin-top: 15px;
}

/* Success/Error Messages */
.bpm-success-message,
.bpm-error-message {
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

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

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

.bpm-success-message h3,
.bpm-error-message h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

/* Upcoming Events Display */
.bpm-upcoming-events {
    margin: 20px 0;
}

.bpm-upcoming-events h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.bpm-events-list {
    display: grid;
    gap: 20px;
}

.bpm-event-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bpm-event-item h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.bpm-event-details p {
    margin: 8px 0;
    color: #555;
}

.bpm-event-details strong {
    color: #2c3e50;
}

.bpm-event-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

/* Form Button */
.bpm-form-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Loading States */
.bpm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.bpm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: bpm-spin 1s linear infinite;
}

@keyframes bpm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpm-registration-form-container {
        padding: 10px;
    }
    
    .bpm-registration-form {
        padding: 20px;
    }
    
    .bpm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .bpm-form-header h2 {
        font-size: 24px;
    }
    
    .bpm-form-section h3 {
        font-size: 18px;
    }
    
    .bpm-button {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .bpm-registration-form {
        padding: 15px;
    }
    
    .bpm-form-header h2 {
        font-size: 20px;
    }
    
    .bpm-form-field input,
    .bpm-form-field select,
    .bpm-form-field textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Accessibility */
.bpm-form-field input:required,
.bpm-form-field select:required,
.bpm-form-field textarea:required {
    border-left: 4px solid #3498db;
}

.bpm-form-field input:invalid,
.bpm-form-field select:invalid,
.bpm-form-field textarea:invalid {
    border-color: #e74c3c;
}

.bpm-form-field input:valid,
.bpm-form-field select:valid,
.bpm-form-field textarea:valid {
    border-color: #27ae60;
}

/* Focus styles for keyboard navigation */
.bpm-button:focus,
.bpm-form-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bpm-registration-form {
        border: 2px solid #000;
    }
    
    .bpm-form-field input,
    .bpm-form-field select,
    .bpm-form-field textarea {
        border: 2px solid #000;
    }
    
    .bpm-button-primary {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bpm-button,
    .bpm-form-button,
    .bpm-form-field input,
    .bpm-form-field select,
    .bpm-form-field textarea {
        transition: none;
    }
    
    .bpm-loading::after {
        animation: none;
    }
}

/* Frontend placement buttons */
.bpm-form-button {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.bpm-form-button:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
}

.bpm-birthday-party-button {
    background-color: #ff6b6b;
}

.bpm-birthday-party-button:hover {
    background-color: #ff5252;
}

.bpm-kids-night-out-button {
    background-color: #4ecdc4;
}

.bpm-kids-night-out-button:hover {
    background-color: #26a69a;
}

.bpm-homepage-cta {
    margin: 0 0 30px;
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #fff8e7 0%, #fff3d6 100%);
    border: 2px solid #f5a623;
    border-radius: 8px;
}

.bpm-free-trial-cta {
    background-color: #f5a623;
    color: #1a1a1a;
    font-size: 18px;
    padding: 16px 32px;
}

.bpm-free-trial-cta:hover {
    background-color: #e09512;
    color: #1a1a1a;
}

#bpm-birthday-party-button-container,
#bpm-kids-night-out-button-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}
