/* Custom Contact Page Styles */

/* Contact Info Section */
.contact-info-section {
    padding: 5rem 0;
    background: white;
}

.contact-cards {
    margin-top: 3rem;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.contact-card:hover {
    background: white;
    border-color: #28a745;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-info h4 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-info a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #20c997;
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-form-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.contact-form-card h3 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-form-card > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.form-control::placeholder {
    color: #999;
}

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

select.form-control {
    cursor: pointer;
}

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

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

.form-check-label {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(-1px);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Map and Social Section */
.map-social-section {
    padding: 5rem 0;
    background: white;
}

.map-container h4 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.social-connect {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
}

.social-connect h4 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.social-connect > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    margin-bottom: 2.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-link.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.social-link.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-link span {
    font-weight: 500;
}

.office-hours {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
}

.office-hours h5 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    color: #333;
    font-weight: 500;
}

.hours-item .time {
    color: #666;
    font-size: 0.95rem;
}

/* Form Validation Styles */
.form-control.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.success {
    border-color: #28a745;
    background: #f8fff8;
}

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

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

/* Loading Animation */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info-section,
    .contact-form-section,
    .map-social-section {
        padding: 3rem 0;
    }
    
    .contact-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .social-connect {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-form-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .social-connect {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 12px 15px;
    }
    
    .contact-submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Animation for contact cards */
.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

/* Success message styling */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

