/* BAQ Training Registration - Styles */

/* ==========================================================================
   Frontend Form Styles
   ========================================================================== */

.baq-registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.baq-form-section {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.baq-form-section:last-child {
    border-bottom: none;
}

.baq-section-title {
    background-color: #d83596;
    color: white;
    padding: 15px 20px;
    margin: -30px -30px 20px -30px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

.baq-section-description {
    color: #d83596;
    font-weight: bold;
    margin-bottom: 15px;
}

.baq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .baq-form-row {
        grid-template-columns: 1fr;
    }
}

.baq-form-group {
    margin-bottom: 20px;
}

.baq-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.baq-form-group input[type="text"],
.baq-form-group input[type="email"],
.baq-form-group input[type="tel"],
.baq-form-group input[type="date"],
.baq-form-group select,
.baq-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f2f5;
    border-radius: 4px;
    background: #f0f2f5;
    font-size: 14px;
    transition: all 0.3s ease;
}

.baq-form-group input:focus,
.baq-form-group select:focus,
.baq-form-group textarea:focus {
    outline: none;
    border-color: #d83596;
    background: #fff;
}

.baq-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.required {
    color: #d83596;
}

/* Payment Options */
.baq-payment-options {
    display: grid;
    gap: 10px;
}

.baq-radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #f0f2f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.baq-radio-option:hover {
    border-color: #d83596;
    background: #fef5fb;
}

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

.baq-radio-option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #d83596;
}

/* Checkbox Groups */
.baq-checkbox-group {
    margin-bottom: 15px;
}

.baq-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.baq-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.baq-checkbox-label span {
    line-height: 1.6;
}

.baq-checkbox-label a {
    color: #d83596;
    text-decoration: underline;
}

/* Submit Button */
.baq-form-submit {
    text-align: center;
    padding: 30px;
}

.baq-submit-btn {
    background: #d83596;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.baq-submit-btn:hover {
    background: #c42885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 53, 150, 0.3);
}

.baq-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Error message */
.baq-error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* No trainings message */
.baq-no-trainings {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* ==========================================================================
   Admin Styles
   ========================================================================== */

.wrap .wp-list-table {
    margin-top: 20px;
}

.status-completed {
    color: #46b450;
    font-weight: bold;
}

.status-pending {
    color: #f0ad4e;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #46b450;
    color: white;
}

.badge-warning {
    background: #f0ad4e;
    color: white;
}

/* Admin form tables */
.form-table th {
    width: 200px;
    font-weight: bold;
}

/* Admin notices */
.notice.notice-success,
.notice.notice-error {
    margin: 20px 0;
}

/* Responsive admin */
@media screen and (max-width: 782px) {
    .wp-list-table td,
    .wp-list-table th {
        padding: 8px;
        font-size: 12px;
    }
}
