/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000000;
    border-radius: 15px;
    padding: 0;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    color: white;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #3aa478, #f69c37);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Team Modal Specific Styles */
.team-modal-content {
    max-width: 900px;
    width: 95%;
}

.team-modal-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
}

.team-modal-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #3aa478;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(58, 164, 120, 0.3);
    transition: all 0.3s ease;
}

.team-modal-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(58, 164, 120, 0.4);
}

.team-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-modal-info h4 {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.team-modal-position {
    color: #3aa478;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    padding: 8px 16px;
    background: rgba(58, 164, 120, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.team-modal-description {
    color: #ecf0f1;
    line-height: 1.8;
    font-size: 1rem;
}

.team-modal-description p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.team-modal-description p:last-child {
    margin-bottom: 0;
}

/* Form Modal Styles */
.service-info-section {
    background: linear-gradient(135deg, #3aa478, #f69c37);
    color: white;
    padding: 1rem;
    margin: 2rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.training-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2rem 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3aa478;
    box-shadow: 0 0 0 3px rgba(58, 164, 120, 0.1);
}

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

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #3aa478, #f69c37);
    color: white;
}

.form-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 164, 120, 0.3);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions .btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.form-actions .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #3aa478;
    color: #3aa478;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 1rem;
    }
    
    .team-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .team-modal-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .team-modal-info h4 {
        font-size: 1.5rem;
    }
    
    .team-modal-position {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .team-modal-image {
        width: 150px;
        height: 150px;
    }
    
    .team-modal-info h4 {
        font-size: 1.3rem;
    }
    
    .team-modal-description {
        font-size: 1rem;
    }
}