/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--orange) 0%, #ff9a3e 100%);
    color: white;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Information Section */
.contact-info-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.contact-info-section .row {
    margin: 0;
}

.contact-info-section .col-lg-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--light-beige);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
    box-shadow: 0 20px 60px rgba(234, 139, 44, 0.15);
}

.contact-card .contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--orange), #ff9a3e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(234, 139, 44, 0.3);
}

.contact-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-card p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.contact-card .contact-links {
    margin-top: auto;
}

.contact-link {
    display: block;
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #d17a1f;
    transform: translateX(5px);
}

.contact-card .btn-outline-orange {
    margin-top: 15px;
}

.btn-outline-orange {
    border: 2px solid var(--orange);
    color: var(--orange);
    background: transparent;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-orange:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 139, 44, 0.3);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: var(--light-beige);
    position: relative;
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-card h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    text-align: center;
}

.contact-form-card .text-muted {
    color: var(--gray) !important;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Styling */
.contact-form-card .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
    color: var(--dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(234, 139, 44, 0.25);
    outline: none;
    transform: translateY(-2px);
}

.contact-form-card .form-control::placeholder {
    color: #adb5bd;
}

/* Form Layout */
.contact-form-card .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contact-form-card .col-md-6,
.contact-form-card .col-12 {
    padding: 0 15px;
    margin-bottom: 20px;
}

.contact-form-card .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.contact-form-card .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Submit Button */
.contact-form-card .btn-orange {
    background: var(--orange);
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(234, 139, 44, 0.3);
    width: auto;
    min-width: 200px;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

.contact-form-card .btn-orange:hover {
    background: #d17a1f;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(234, 139, 44, 0.4);
    color: white;
}

.contact-form-card .btn-orange:active {
    transform: translateY(-1px);
}

.contact-form-card .btn-orange:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(234, 139, 44, 0.25);
}

/* Ensure button container is properly aligned */
.contact-form-card .col-12:last-child {
    text-align: center;
    margin-top: 20px;
}

/* Form validation styling */
.contact-form-card .form-control.is-invalid,
.contact-form-card .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form-card .form-control.is-valid,
.contact-form-card .form-select.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Character counter styling */
.char-counter {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.char-counter.text-warning {
    color: #ffc107 !important;
}

.char-counter.text-muted {
    color: #6c757d !important;
}

/* Form Checkbox */
.contact-form-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.contact-form-card .form-check-input {
    margin: 0;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--orange);
    border-radius: 4px;
}

.contact-form-card .form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

.contact-form-card .form-check-label {
    margin: 0;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Social Media Card */
.social-media-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-media-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    text-align: center;
}

.social-media-card .text-muted {
    color: var(--gray) !important;
    text-align: center;
    margin-bottom: 30px;
}

.social-links-large {
    margin-bottom: 40px;
}

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

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--orange);
    background: white;
}

.social-link i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.social-link.facebook i {
    background: #1877f2;
}

.social-link.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.twitter i {
    background: #1da1f2;
}

.social-link.youtube i {
    background: #ff0000;
}

.social-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.social-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 2px;
}

.social-followers {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Office Hours */
.office-hours {
    background: var(--light-beige);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.office-hours h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
}

.hours-list {
    margin-bottom: 20px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

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

.hours-item span:first-child {
    color: var(--dark);
    font-weight: 500;
}

.hours-item span:last-child {
    color: var(--orange);
    font-weight: 600;
}

.office-hours .text-muted {
    color: var(--gray) !important;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

.office-hours .text-muted i {
    color: var(--orange);
    margin-right: 8px;
}

/* Map Section */
.map-section {
    position: relative;
    background: white;
    margin-top: 0;
}

.map-container {
    position: relative;
    width: 100%;
}

.map-container iframe {
    border-radius: 0;
    width: 100%;
    height: 400px;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.map-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.map-info p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.map-info .btn-orange {
    background: var(--orange);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.map-info .btn-orange:hover {
    background: #d17a1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 139, 44, 0.3);
    color: white;
}

/* Contact Form & Social Media Layout */
.contact-form-section .row {
    margin: 0;
    align-items: flex-start;
}

.contact-form-section .col-lg-8 {
    padding: 0 15px;
}

.contact-form-section .col-lg-4 {
    padding: 0 15px;
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.social-media-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
}

/* Ensure proper spacing between form sections */
.contact-form-card .row {
    margin: 0 -15px;
}

.contact-form-card .col-md-6,
.contact-form-card .col-12 {
    padding: 0 15px;
    margin-bottom: 20px;
}

.contact-form-card .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.contact-form-card .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Form field spacing */
.contact-form-card .form-group {
    margin-bottom: 20px;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
    color: var(--dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(234, 139, 44, 0.25);
    outline: none;
    transform: translateY(-2px);
}

.contact-form-card .form-control::placeholder {
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .contact-info-section,
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .contact-form-card,
    .social-media-card {
        padding: 30px 25px;
    }
    
    .contact-form-card .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .contact-form-card,
    .social-media-card {
        padding: 25px 20px;
    }
    
    .social-link {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .social-link i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .map-overlay {
        position: static;
        margin: 20px;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-card,
    .social-media-card {
        padding: 20px 15px;
    }
    
    .contact-form-card h3 {
        font-size: 1.5rem;
    }
    
    .contact-form-card .btn-orange {
        width: 100%;
        text-align: center;
    }
}

/* Overall page layout fixes */
.contact-hero,
.contact-info-section,
.contact-form-section,
.map-section {
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
}

/* Container and row fixes */
.container,
.container-fluid {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    max-width: none;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6,
.col-lg-4,
.col-lg-8,
.col-md-6,
.col-12 {
    display: block;
    padding: 0 15px;
}

/* Ensure proper spacing */
section {
    margin: 0;
    padding: 0;
}

.contact-hero {
    margin-top: 0;
    margin-bottom: 0;
}

.contact-info-section {
    margin-top: 0;
    margin-bottom: 0;
}

.contact-form-section {
    margin-top: 0;
    margin-bottom: 0;
}

.map-section {
    margin-top: 0;
    margin-bottom: 0;
}

/* Submit Button Styling and Alignment */
.contact-form-card .btn-orange {
    background: var(--orange);
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(234, 139, 44, 0.3);
    width: auto;
    min-width: 200px;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.contact-form-card .btn-orange:hover {
    background: #d17a1f;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(234, 139, 44, 0.4);
    color: white;
}

.contact-form-card .btn-orange:active {
    transform: translateY(-1px);
}

.contact-form-card .btn-orange:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(234, 139, 44, 0.25);
}

/* Ensure button container is properly aligned */
.contact-form-card .col-12:last-child {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Form layout improvements */
.contact-form-card form {
    display: block;
    width: 100%;
}

.contact-form-card .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contact-form-card .form-group {
    margin-bottom: 25px;
    width: 100%;
}

.contact-form-card .form-group.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.contact-form-card .form-group.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Ensure all form elements are properly spaced */
.contact-form-card .form-control,
.contact-form-card .form-select {
    margin-bottom: 0;
    height: auto;
    min-height: 50px;
}

.contact-form-card .form-check {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Textarea specific styling */
.contact-form-card textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Form validation visual feedback */
.contact-form-card .form-control.is-invalid,
.contact-form-card .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form-card .form-control.is-valid,
.contact-form-card .form-select.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Character counter styling */
.char-counter {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    text-align: right;
    color: #6c757d;
}

.char-counter.text-warning {
    color: #ffc107 !important;
}

.char-counter.text-danger {
    color: #dc3545 !important;
}

/* Map Section Styles */
.map-container {
    position: relative;
    overflow: hidden;
}

.map-link {
    display: block;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.map-link:hover {
    transform: scale(1.02);
}

.static-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.map-link:hover .static-map-image {
    opacity: 0.9;
}