﻿/* Trainer Registration Form Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Header */
.form-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .form-header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .form-header h2 {
        font-size: 1.5rem;
        opacity: 0.9;
    }

/* Form Sections */
.form-section {
    background: white;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

    .form-section:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

/* Section Headers */
.section-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 20px 30px;
    margin: 0;
    border-bottom: 3px solid #a71e2a;
}

.section-header-green {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-bottom: 3px solid #155724;
}

.section-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-header i {
    color: rgba(255,255,255,0.9);
}

/* Form Content */
.form-section .row,
.form-section .mb-3,
.form-section .mb-4 {
    padding-left: 30px;
    padding-right: 30px;
}

.form-section > .row:first-of-type,
.form-section > .mb-3:first-of-type,
.form-section > .mb-4:first-of-type {
    padding-top: 30px;
}

.form-section > .row:last-of-type,
.form-section > .mb-3:last-of-type,
.form-section > .mb-4:last-of-type {
    padding-bottom: 30px;
}

/* Profile Photo */
.profile-photo-container {
    text-align: center;
    padding: 20px;
}

.profile-photo-placeholder {
    width: 150px;
    height: 200px;
    border: 3px dashed #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
}

    .profile-photo-placeholder:hover {
        border-color: #007bff;
        background: #e3f2fd;
    }

.profile-photo-preview {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

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

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
        outline: none;
    }

    .form-control:invalid,
    .form-select:invalid {
        border-color: #dc3545;
    }

        .form-control:invalid:focus,
        .form-select:invalid:focus {
            border-color: #dc3545;
            box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25);
        }

/* Radio and Checkbox Groups */
.form-check-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    margin-top: 0.35em;
    margin-right: 8px;
    width: 1.2em;
    height: 1.2em;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* Qualification Options */
.qualification-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Training Areas */
.training-areas {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.training-category {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .training-category:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

    .category-header label {
        margin-left: 10px;
        margin-bottom: 0;
        color: #2c5aa0;
        font-size: 1.1rem;
    }

.category-checkbox {
    width: 1.3em;
    height: 1.3em;
}

.category-options {
    display: none;
    animation: slideDown 0.3s ease;
}

    .category-options.show {
        display: block;
    }

    .category-options .form-check {
        margin: 5px 15px 5px 0;
    }

    .category-options .form-check-inline {
        margin-right: 20px;
        margin-bottom: 8px;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Facility and Ownership Options */
.facility-type-options,
.ownership-options,
.accessibility-options,
.trained-before-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Attachments Grid */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.attachment-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    transition: all 0.3s ease;
}

    .attachment-item:hover {
        border-color: #007bff;
        background: #e3f2fd;
    }

    .attachment-item label {
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        display: block;
    }

    .attachment-item input[type="file"] {
        border: none;
        background: white;
        padding: 10px;
        border-radius: 5px;
    }

/* Declaration */
.declaration-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 30px;
}

    .declaration-text p {
        margin-bottom: 10px;
        color: #856404;
        font-weight: 500;
    }

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

.signature-box {
    border: 2px solid #ccc;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0056b3, #004085);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,123,255,0.4);
    }

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    border: none;
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, #545b62, #3d4449);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(108,117,125,0.4);
    }

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

    .btn-outline-primary:hover {
        background: #007bff;
        color: white;
        transform: translateY(-1px);
    }

/* Validation Styles */
.text-danger {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25);
}

/* Hidden Elements */
.d-none {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }

    .form-header h2 {
        font-size: 1.2rem;
    }

    .section-header {
        padding: 15px 20px;
    }

        .section-header h3 {
            font-size: 1.2rem;
        }

    .form-section .row,
    .form-section .mb-3,
    .form-section .mb-4 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .form-section > .row:first-of-type,
    .form-section > .mb-3:first-of-type,
    .form-section > .mb-4:first-of-type {
        padding-top: 20px;
    }

    .form-section > .row:last-of-type,
    .form-section > .mb-3:last-of-type,
    .form-section > .mb-4:last-of-type {
        padding-bottom: 20px;
    }

    .qualification-options,
    .facility-type-options,
    .ownership-options,
    .accessibility-options,
    .trained-before-options {
        grid-template-columns: 1fr;
    }

    .attachments-grid {
        grid-template-columns: 1fr;
    }

    .form-check-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .profile-photo-placeholder {
        width: 120px;
        height: 160px;
    }

    .profile-photo-preview {
        width: 120px;
        height: 160px;
    }

    .training-areas {
        padding: 15px;
    }

    .training-category {
        padding: 10px;
    }

    .category-options .form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .form-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .section-header {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .btn {
        display: none;
    }

    .form-control,
    .form-select {
        border: 1px solid #333;
        background: transparent;
    }

    .training-areas,
    .qualification-options,
    .facility-type-options,
    .ownership-options,
    .accessibility-options,
    .trained-before-options,
    .attachment-item,
    .declaration-text {
        background: transparent !important;
        border: 1px solid #ccc;
    }
}
