html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #1B3673;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== CONTACT PAGE STYLES ===== */

/* Contact Hero Section */
.contact-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23333333" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23333333" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.contact-badge {
    display: inline-block;
    background: #F7951E;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1B3673;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-hero-description {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1B3673;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #333333;
    margin-top: 5px;
}

.contact-hero-image {
    position: relative;
}

.contact-hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(27, 54, 115, 0.1);
}

.contact-hero-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #1B3673;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(27, 54, 115, 0.3);
}

.hero-icon {
    color: white;
    font-size: 2rem;
}

/* Contact Info Section */
.contact-info-section {
    padding: 80px 0;
    background: white;
}

.contact-info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(27, 54, 115, 0.15);
    border-color: #F7951E;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1B3673, #2a4a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    background: linear-gradient(135deg, #F7951E, #ff8c00);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1B3673;
    margin-bottom: 15px;
}

.contact-info-text {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info-link {
    color: #F7951E;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info-link:hover {
    color: #1B3673;
    text-decoration: none;
}

.contact-info-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.contact-info-link:hover i {
    transform: translateX(5px);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-badge {
    display: inline-block;
    background: #F7951E;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B3673;
    margin-bottom: 15px;
}

.form-subtitle {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-form .form-label {
    font-weight: 600;
    color: #1B3673;
    margin-bottom: 8px;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form .form-control:focus {
    border-color: #F7951E;
    box-shadow: 0 0 0 0.2rem rgba(247, 149, 30, 0.25);
    background: white;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.character-count {
    margin-top: 5px;
}

.form-check-input:checked {
    background-color: #1B3673;
    border-color: #1B3673;
}

.form-check-input:focus {
    border-color: #F7951E;
    box-shadow: 0 0 0 0.25rem rgba(247, 149, 30, 0.25);
}

.privacy-link {
    color: #F7951E;
    text-decoration: none;
}

.privacy-link:hover {
    color: #1B3673;
    text-decoration: underline;
}

.btn-submit {
    background: linear-gradient(135deg, #1B3673, #2a4a8a);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #F7951E, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 149, 30, 0.3);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Office Hours Section */
.office-hours-section {
    padding: 80px 0;
    background: white;
}

.office-hours-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    border-left: 5px solid #F7951E;
}

.hours-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.hours-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1B3673, #2a4a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.hours-icon i {
    font-size: 1.5rem;
    color: white;
}

.hours-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1B3673;
    margin: 0;
}

.hours-list {
    margin-bottom: 25px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.hours-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
    color: #333333;
}

.time {
    color: #1B3673;
    font-weight: 500;
}

.emergency-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
}

.emergency-note i {
    color: #F7951E;
}

/* Map Container */
.map-container {
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    background: linear-gradient(135deg, #1B3673, #2a4a8a);
    height: 100%;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.map-placeholder h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.map-placeholder p {
    opacity: 0.8;
    margin-bottom: 25px;
}

.map-btn {
    background: #F7951E;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: #ff8c00;
    transform: translateY(-2px);
}

/* FAQ Section */
.contact-faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-badge {
    display: inline-block;
    background: #F7951E;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B3673;
    margin-bottom: 15px;
}

.faq-subtitle {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: white;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    color: #1B3673;
    font-size: 1.1rem;
    border-radius: 10px;
}

.accordion-button:not(.collapsed) {
    background: #1B3673;
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #F7951E;
    box-shadow: 0 0 0 0.25rem rgba(247, 149, 30, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F7951E'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background: white;
    padding: 25px;
    color: #333333;
    line-height: 1.6;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .office-hours-card {
        padding: 30px 20px;
    }
    
    .hours-header {
        flex-direction: column;
        text-align: center;
    }
    
    .hours-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .contact-hero-section {
        padding: 60px 0;
    }
    
    .contact-info-section,
    .contact-form-section,
    .office-hours-section,
    .contact-faq-section {
        padding: 60px 0;
    }
    
    .contact-hero-title {
        font-size: 1.8rem;
    }
    
    .form-title,
    .faq-title {
        font-size: 1.8rem;
    }
    
    .contact-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}
/* Form Validation Styles */
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.contact-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .text-danger {
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

/* Alert Styles */
.alert {
    border: none;
    font-weight: 500;
}

.alert i {
    margin-right: 8px;
}

.alert-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

/* Loading State for Submit Button */
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SOCIAL MEDIA STICKY ICONS ===== */
.sticky-social-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.social-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    overflow: visible;
    transition: all 0.3s ease;
}

.social-icon-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-bg {
    position: absolute;
    top: -1px;
    right: -35px;
    width: 60px;
    height: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 30px 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 70px;
    z-index: 1;
}

.social-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    transform: translateX(20px);
}

.social-icon-circle {
    position: absolute;
    top: 4px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 3;
}

.social-icon-circle i {
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Hover Effects - Only expand the hovered item */
.social-icon-wrapper:hover .social-icon-bg {
    width: 280px;
    border-radius: 30px 0 0 30px;
}

.social-icon-wrapper:hover .social-text {
    opacity: 1;
    transform: translateX(0);
}

.social-icon-wrapper:hover .social-icon-circle {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Non-hovered items stay in place */
.social-icon-wrapper:not(:hover) {
    width: 60px;
}

.social-icon-wrapper:not(:hover) .social-icon-bg {
    width: 60px;
}

/* When container is hovered, show partial background for non-hovered items */
.sticky-social-container:hover .social-icon-wrapper:not(:hover) .social-icon-bg {
    width: 80px;
    border-radius: 30px 0 0 30px;
}

/* Instagram Colors */
.instagram-bg {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-wrapper .social-icon-circle i {
    color: #e1306c;
}

.instagram-wrapper:hover .social-icon-circle {
    background: rgba(255, 255, 255, 0.95);
}

.instagram-wrapper:hover .social-icon-circle i {
    color: #e1306c;
}

/* Facebook Colors */
.facebook-bg {
    background: #1877f2;
}

.facebook-wrapper .social-icon-circle i {
    color: #1877f2;
}

.facebook-wrapper:hover .social-icon-circle {
    background: rgba(255, 255, 255, 0.95);
}

.facebook-wrapper:hover .social-icon-circle i {
    color: #1877f2;
}

/* YouTube Colors */
.youtube-bg {
    background: #ff0000;
}

.youtube-wrapper .social-icon-circle i {
    color: #ff0000;
}

.youtube-wrapper:hover .social-icon-circle {
    background: rgba(255, 255, 255, 0.95);
}

.youtube-wrapper:hover .social-icon-circle i {
    color: #ff0000;
}

/* Responsive Design for Social Icons */
@media (max-width: 768px) {
    .sticky-social-container {
        right: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 0;
    }
    
    .social-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }
    
    .social-icon-wrapper:hover .social-icon-bg {
        width: 200px;
    }
    
    .social-icon-wrapper:not(:hover) {
        width: 50px;
    }
    
    .social-icon-wrapper:not(:hover) .social-icon-bg {
        width: 50px;
    }
    
    .sticky-social-container:hover .social-icon-wrapper:not(:hover) .social-icon-bg {
        width: 70px;
    }
    
    .social-icon-bg {
        width: 50px;
        height: 50px;
        border-radius: 25px 0 0 25px;
        padding-left: 15px;
        padding-right: 55px;
    }
    
    .social-text {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .social-icon-circle {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
    }
    
    .social-icon-circle i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sticky-social-container {
        right: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        gap: 0;
        flex-direction: column;
    }
    
    .social-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .social-icon-wrapper:hover .social-icon-bg {
        width: 180px;
    }
    
    .social-icon-wrapper:not(:hover) {
        width: 45px;
    }
    
    .social-icon-wrapper:not(:hover) .social-icon-bg {
        width: 45px;
    }
    
    .sticky-social-container:hover .social-icon-wrapper:not(:hover) .social-icon-bg {
        width: 65px;
    }
    
    .social-icon-bg {
        width: 45px;
        height: 45px;
        border-radius: 22px 0 0 22px;
        padding-left: 12px;
        padding-right: 48px;
    }
    
    .social-text {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .social-icon-circle {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
    }
    
    .social-icon-circle i {
        font-size: 14px;
    }
}