/* ===================================
   CONTACT PAGE STYLES
   Uses master.css variables
   =================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-steel) 100%);
    padding: 100px 0 60px;
}

.header-content {
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: 1rem;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    list-style: none;
}

.breadcrumb-item {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--accent-gold);
}

.breadcrumb-item.active {
    color: var(--accent-gold);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

/* Contact Intro */
.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.lead-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 400;
}

/* Quick Contact Cards */
.contact-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--text-inverse);
}

.contact-icon.whatsapp {
    background: var(--whatsapp-green);
}

.contact-icon.email {
    background: var(--accent-gold);
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-gold);
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.form-subheading {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-control:focus {
    border-color: var(--secondary-steel);
    box-shadow: 0 0 0 3px rgba(47, 93, 138, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.btn-block {
    width: 100%;
}

.form-footer-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.form-footer-note i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* Contact Info */
.contact-info-wrapper {
    position: sticky;
    top: 100px;
}

.info-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.info-subheading {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Branch List */
.branch-list {
    margin-bottom: 2rem;
}

.branch-card {
    display: flex;
    gap: 15px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
    transition: var(--transition);
}

.branch-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.branch-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(200, 162, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-icon i {
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.branch-content {}

.branch-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.branch-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.branch-phone {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.branch-phone i {
    color: var(--accent-gold);
    margin-right: 5px;
}

.branch-phone a {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
}

.branch-phone a:hover {
    color: var(--accent-gold);
}

.branch-badge {
    display: inline-block;
    background: rgba(200, 162, 77, 0.1);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Coverage Note */
.coverage-note {
    background: rgba(200, 162, 77, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-gold);
    margin-bottom: 2rem;
}

.coverage-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coverage-heading i {
    color: var(--accent-gold);
}

.coverage-note p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Business Hours */
.business-hours {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.hours-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-heading i {
    color: var(--accent-gold);
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
    color: var(--text-dark);
}

.time {
    color: var(--text-muted);
}

/* Map Section */
.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Why Contact Us */
.why-contact {}

.section-subheading {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-weight: 400;
}

.feature-box {
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-steel));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--text-inverse);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Social Media Section */
.social-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.social-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-subheading {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
    min-width: 120px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-link i {
    font-size: 2rem;
    color: var(--text-inverse);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-link span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.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.linkedin i {
    background: #0077b5;
}

.social-link.youtube i {
    background: #ff0000;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .page-header {
        padding: 80px 0 50px;
    }
    
    .contact-info-wrapper {
        position: static;
        margin-top: 30px;
    }
    
    .contact-form-wrapper {
        padding: 30px 25px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 30px 25px;
    }
    
    .form-heading {
        font-size: 1.5rem;
    }
    
    .branch-card {
        flex-direction: column;
        text-align: center;
    }
    
    .branch-icon {
        margin: 0 auto;
    }
    
    .social-links-large {
        gap: 15px;
    }
    
    .social-link {
        min-width: 100px;
        padding: 20px 15px;
    }
    
    .social-link i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .branch-card {
        padding: 15px;
    }
    
    .social-link {
        flex: 0 0 calc(50% - 10px);
    }
}

/* ===================================
   FORM ANIMATIONS & SUCCESS STATES
   =================================== */

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Success State */
.btn-success-state {
    background: #10b981 !important;
    border-color: #10b981 !important;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Form Success Message */
.form-success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s ease;
    z-index: 10;
}

.form-success-message.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 3rem;
    color: var(--text-inverse);
    animation: checkMark 0.6s ease-out 0.2s both;
}

@keyframes checkMark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.form-success-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.form-success-message p {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 400px;
    line-height: 1.7;
    margin: 0;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation States */
.was-validated .form-control:valid {
    border-color: #10b981;
}

.was-validated .form-control:valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.was-validated .form-control:invalid {
    border-color: #ef4444;
}

.was-validated .form-control:invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Input Focus Animation */
.form-control:focus {
    transform: translateY(-2px);
}

/* Button Hover Enhancement */
.btn-primary:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 42, 68, 0.3);
}

.btn-primary:not(:disabled):active {
    transform: translateY(-1px);
}

/* Form Relative Position for Success Message */
.contact-form {
    position: relative;
}

/* Disabled State During Submission */
.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Responsive for Success Message */
@media (max-width: 575px) {
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .success-icon i {
        font-size: 2.5rem;
    }
    
    .form-success-message h3 {
        font-size: 1.5rem;
    }
    
    .form-success-message p {
        font-size: 1rem;
        padding: 0 20px;
    }
}