/* Contact Page Specific Styles */

/* Contact Info Cards */
.contact-info-area {
    background: #f8f9fa;
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #007bff;
    height: 100%;
    margin-bottom: 30px;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact-info-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
}

.contact-info-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.contact-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-item i {
    color: #007bff;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

.detail-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: #0056b3;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

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

.contact-form .required {
    color: #dc3545;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form select.form-control {
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin-top: 4px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
    cursor: pointer;
}

.form-check-label a {
    color: #007bff;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 30px;
}

.form-actions .th-btn {
    min-width: 160px;
    position: relative;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Contact Sidebar */
.contact-sidebar {
    padding-left: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

/* Department List */
.department-list {
    display: grid;
    gap: 20px;
}

.department-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.department-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.dept-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.dept-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.dept-email,
.dept-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 5px;
}

.dept-email i,
.dept-phone i {
    color: #007bff;
    width: 14px;
}

.dept-email a,
.dept-phone a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dept-email a:hover,
.dept-phone a:hover {
    color: #007bff;
}

/* Social Links */
.social-links {
    display: grid;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link.facebook:hover {
    background: #4267B2;
    color: white;
}

.social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.social-link.linkedin:hover {
    background: #2867B2;
    color: white;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-link.instagram:hover {
    background: #E4405F;
    color: white;
}

.social-link i {
    font-size: 16px;
}

/* Quick Links */
.quick-links {
    display: grid;
    gap: 10px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-links a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.quick-links a i {
    font-size: 12px;
    color: #007bff;
    transition: color 0.3s ease;
}

.quick-links a:hover i {
    color: white;
}

/* Location Map */
.location-map-area {
    margin-top: 50px;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Emergency Contact */
.emergency-contact-card {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.emergency-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
}

.emergency-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.emergency-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.emergency-details {
    display: grid;
    gap: 15px;
}

.emergency-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
}

.emergency-item i {
    font-size: 18px;
}

.emergency-item strong {
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .sidebar-widget {
        padding: 25px;
    }
    
    .department-item {
        flex-direction: column;
        text-align: center;
    }
    
    .dept-icon {
        margin: 0 auto 10px;
    }
    
    .emergency-contact-card {
        padding: 30px 20px;
    }
    
    .emergency-details {
        gap: 12px;
    }
    
    .emergency-item {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .contact-info-card {
        padding: 25px 20px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .social-link,
    .quick-links a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    color: #28a745;
}

/* Loading Animation */
.contact-loading {
    text-align: center;
    padding: 50px 0;
}

.contact-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Success Message */
.contact-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.contact-success.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Message */
.contact-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.contact-error.show {
    display: block;
    animation: slideIn 0.3s ease;
}