/* ===================================
   Client Registration Form Styles
   =================================== */

.pcc-registration-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pcc-registration-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.registration-header {
    background: linear-gradient(135deg, #005eb8 0%, #003d7a 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.registration-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
}

.registration-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.pcc-registration-form {
    padding: 40px 30px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #005eb8;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.5rem;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.form-control,
.form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #005eb8;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Certifications Checkboxes */
.certifications-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.form-actions .btn {
    min-width: 250px;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background: #005eb8;
    border: none;
}

.form-actions .btn-primary:hover {
    background: #004a94;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 94, 184, 0.3);
}

.form-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
#pcc-form-messages {
    margin-bottom: 30px;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .pcc-registration-wrapper {
        padding: 20px 10px;
    }

    .pcc-registration-form {
        padding: 30px 20px;
    }

    .registration-header {
        padding: 30px 20px;
    }

    .registration-header h2 {
        font-size: 1.5rem;
    }

    .certifications-checkboxes {
        grid-template-columns: 1fr;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Loading Spinner */
.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Certification Rows */
.certification-row {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.certification-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.certification-row .row {
    margin: 0;
}

.certification-row .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 8px;
}

.remove-cert-btn {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    white-space: nowrap;
}

.remove-cert-btn i {
    margin-right: 5px;
}

#add-certification-btn {
    font-weight: 600;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#add-certification-btn i {
    font-size: 1.2rem;
}

#cert-error {
    display: none;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .certification-row {
        padding: 15px;
    }
    
    .certification-row .col-md-2 {
        margin-top: 10px;
    }
    
    .remove-cert-btn {
        width: 100%;
    }
}
