/* ============================================
   CONTACT PAGE STYLES
   Consistent with News Page Design
   Theme: Green Medical Hospital
   ============================================ */

/* Remove any gaps */
body {
    margin: 0;
    padding: 0;
}

/* Ensure hero connects to navbar */
.hero-contact {
    margin-top: 0 !important;
}

/* ====================================
   1. HERO SECTION
   ==================================== */
.hero-contact {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 120px 0 60px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Background Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .03) 35px, rgba(255, 255, 255, .03) 70px);
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(70px) translateY(70px);
    }
}

/* Animated Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Breadcrumb Custom */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-custom .breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #fff;
}

/* Badge */
.badge-light-success {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Quick Contact Cards */
.quick-contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.quick-contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

/* Wave Bottom */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* ====================================
   2. CONTACT CARDS
   ==================================== */
.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.2);
    border-color: rgba(5, 150, 105, 0.2);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

/* Contact Icon */
.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
    transition: all 0.3s;
}

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

/* WhatsApp Card */
.whatsapp-card .contact-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-card:hover {
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.2);
}

/* Emergency Card */
.emergency-card {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
}

.emergency-card::before {
    background: rgba(255, 255, 255, 0.3);
}

.emergency-card .card-description {
    color: rgba(255, 255, 255, 0.9);
}

.emergency-card .contact-icon {
    background: rgba(255, 255, 255, 0.25);
    animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.emergency-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.4);
}

/* Card Content */
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.emergency-card .card-title {
    color: #fff;
}

.card-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #059669;
}

.emergency-card .card-value {
    color: #fff;
}

/* ====================================
   3. FORM SECTION
   ==================================== */
.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.form-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
}

.form-header .badge {
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.form-subtitle {
    color: #64748b;
    font-size: 1rem;
}

/* Form Controls */
.form-floating>.form-control,
.form-floating>.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    transition: all 0.3s;
    min-height: calc(3.5rem + 2px);
    font-size: 1rem;
}

.form-floating>label {
    color: #64748b;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}

.form-control.is-invalid {
    border-color: #dc2626;
}

.message-input {
    min-height: 150px !important;
    resize: vertical;
}

/* reCAPTCHA */
.g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
}

/* ====================================
   4. INFO CARDS
   ==================================== */
.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.info-header i {
    font-size: 1.5rem;
}

.info-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.info-body {
    color: #64748b;
}

/* Hours Items */
.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.hours-item.emergency {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.1));
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 10px;
    border-bottom: none;
}

.hours-item.emergency .day,
.hours-item.emergency .time {
    color: #dc2626;
    font-weight: 700;
}

.day {
    font-weight: 600;
    color: #475569;
}

.time {
    color: #059669;
    font-weight: 600;
}

/* Social Links */
.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
}

.social-link.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
}

.social-link:hover {
    transform: translateY(-5px);
    color: #fff;
}

/* ====================================
   5. MAP SECTION
   ==================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 450px;
    border: 2px solid #e2e8f0;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ====================================
   6. CTA SECTION
   ==================================== */
.cta-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    animation: patternMove 20s linear infinite;
}

/* ====================================
   7. BUTTONS
   ==================================== */
.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.btn-success-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: #fff;
}

.btn-success-wa:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-outline-success {
    border: 2px solid #059669;
    color: #059669;
}

.btn-outline-success:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: #dc2626;
    border: none;
}

.btn-light:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: #dc2626;
}

/* ====================================
   8. RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .hero-contact {
        padding: 100px 0 50px;
        min-height: 400px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .form-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .map-wrapper {
        height: 350px;
    }

    .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 576px) {
    .hero-contact {
        padding: 80px 0 40px;
    }

    .form-card {
        padding: 25px 15px;
    }

    .info-card {
        padding: 20px;
    }

    .quick-contact-card {
        padding: 15px !important;
    }
}

/* ====================================
   9. UTILITIES
   ==================================== */
.bg-light-success {
    background: rgba(5, 150, 105, 0.1);
}

.text-success {
    color: #059669 !important;
}

/* Loading State */
.indicator-progress {
    display: none;
}

button:disabled .indicator-label {
    display: none;
}

button:disabled .indicator-progress {
    display: inline-block;
}
