/* ========== AP Hero Styles for Contact Page ========== */

/* AP Hero */
.ap-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 75px 20px 60px;
}
.ap-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: apHeroZoom 12s ease-in-out infinite alternate;
}
@keyframes apHeroZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.ap-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,61,145,0.85) 0%, rgba(6,19,37,0.92) 60%, rgba(243,105,32,0.4) 100%);
}
.ap-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 1000px;
}
.ap-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247,186,0,0.18);
    border: 1px solid rgba(247,186,0,0.55);
    color: #f7ba00;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}
.ap-hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.ap-highlight { color: var(--primary-orange); }
.ap-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 850px;
    margin: 0 auto 0;
    line-height: 1.7;
}
.ap-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Mobile Responsive for Hero */
@media (max-width: 768px) {
    .ap-hero {
        min-height: auto !important;
        padding: 35px 10% 15px !important;
    }
    .ap-hero-content {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    .ap-hero-content h1 {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }
    .ap-hero-content p {
        font-size: 13px;
        margin-bottom: 0;
        max-width: 100%;
    }
    .ap-hero-badge {
        font-size: 10px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }
    .ap-hero-scroll { display: none; }
}


/* ========== CONTACT PAGE CSS ========== */
.cp-section {
    padding: 80px 5%;
    background: var(--bg-light);
}
.cp-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Quick Connect Banners */
.cp-quick-connect {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 55px;
}
.cp-quick-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 25px;
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.cp-quick-card:hover { transform: translateY(-5px); color: #ffffff; box-shadow: 0 18px 40px rgba(0,0,0,0.15); }
.cp-quick-call { background: linear-gradient(135deg, #0a3d91, #174baf); }
.cp-quick-wa { background: linear-gradient(135deg, #25d366, #1da851); }
.cp-quick-mail { background: linear-gradient(135deg, #f36920, #ff7a33); }
.cp-quick-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cp-quick-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.85; font-weight: 600; margin-bottom: 4px; }
.cp-quick-val { display: block; font-size: 15px; font-weight: 800; }

/* Main Grid */
.cp-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
    align-items: start;
}

/* Form Box */
.cp-form-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(10,61,145,0.06);
    border: 1px solid #f0f4f9;
}
.cp-form-header { margin-bottom: 30px; }
.cp-form-title { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); margin: 8px 0 8px; }
.cp-form-desc { font-size: 13.5px; color: #888888; line-height: 1.6; }

/* Info Column */
.cp-info-col { display: flex; flex-direction: column; gap: 20px; }
.cp-info-cards { display: flex; flex-direction: column; gap: 14px; }

/* Fix extra form spacing */
.form-group-row .form-input-group {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .cp-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .cp-section { padding: 30px 5%; }
    .cp-quick-connect { grid-template-columns: 1fr; gap: 12px; margin-bottom: 35px; }
    .cp-quick-card { padding: 16px 18px; gap: 14px; border-radius: 16px; }
    .cp-quick-icon { width: 42px; height: 42px; font-size: 17px; }
    .cp-quick-val { font-size: 14px; }
    .cp-form-box { padding: 0; border: none; box-shadow: none; background: transparent; }
    .cp-form-title { font-size: 1.5rem; }
    .cp-main-grid { gap: 25px; }
    .cp-fullwidth-map { margin-top: 25px !important; }
}

.cp-fullwidth-map { width: 100%; line-height: 0; }
.cp-fullwidth-map iframe { width: 100%; display: block; border: 0; }

/* Custom Select Styling */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
/* Ensure original icons stay above the custom dropdown */
.input-wrapper > i {
    z-index: 2;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    height: 48px;
    padding: 0 18px 0 45px;
    border: 1.5px solid #e1e7f0;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-dark, #333);
    background-color: #ffffff;
    transition: all 0.3s ease;
}
.custom-select-trigger .arrow {
    position: relative !important;
    left: auto !important;
    font-size: 12px;
    color: #888;
}
.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 10px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.custom-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-option {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-option:hover {
    background-color: var(--primary-orange);
    color: #fff;
}

/* ========== CONTACT SECTION CSS ========== */
.contact-section {
    padding: 80px 5%;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* Contact Form Column */
.contact-form-column {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(10, 61, 145, 0.04);
    border: 1px solid #f2f5f9;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-input-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: #555555;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: #888888;
    font-size: 14px;
    transition: color 0.3s ease;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border: 1.5px solid #e1e7f0;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(243, 105, 32, 0.12);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i,
.input-wrapper textarea:focus + i {
    color: var(--primary-orange);
}

.text-area-wrapper i {
    top: 18px;
}

.input-wrapper textarea {
    padding-top: 15px;
    resize: none;
}

.btn-submit-contact {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-orange), #ff7a33);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(243, 105, 32, 0.25);
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 105, 32, 0.4);
}

/* Contact Info Column */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 320px));
    gap: 20px;
}

.info-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(10, 61, 145, 0.03);
    border: 1px solid #f2f5f9;
    transition: all 0.3s ease;
    height: 130px; /* Fixed height to make all cards exactly the same size */
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(10, 61, 145, 0.06);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-icon.blue-theme {
    background-color: rgba(10, 61, 145, 0.08);
    color: var(--primary-blue);
}

.info-icon.green-theme {
    background-color: rgba(37, 211, 102, 0.08);
    color: #25d366;
}

.info-icon.orange-theme {
    background-color: rgba(243, 105, 32, 0.08);
    color: var(--primary-orange);
}

.info-details h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #888888;
    margin-bottom: 3px;
}

.info-details a,
.info-details p {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.4;
}

.info-details a:hover {
    color: var(--primary-orange);
}

/* Map Wrapper */
.contact-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 61, 145, 0.05);
    border: 1px solid #f2f5f9;
    line-height: 0;
}

/* Social Media Box */
.contact-socials h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon.facebook { background-color: #1877f2; }
.social-icon.instagram { background-color: #e4405f; }
.social-icon.linkedin { background-color: #0077b5; }
.social-icon.whatsapp { background-color: #25d366; }
.social-icon.twitter { background-color: #1da1f2; }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.email { background-color: var(--primary-orange); }


.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Toast Success Popup */
.contact-toast {
    position: fixed;
    bottom: 100px;
    right: -450px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-left: 6px solid #25d366;
    padding: 20px;
    max-width: 380px;
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-toast.show {
    right: 30px;
}

.toast-content {
    display: flex;
    align-items: start;
    gap: 15px;
}

.toast-icon {
    font-size: 24px;
    color: #25d366;
    margin-top: 2px;
}

.toast-details h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.toast-details p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 4%;
    }
    .contact-form-column {
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    .form-input-group {
        margin-bottom: 12px;
        gap: 4px;
    }
    .form-input-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 12px 15px 12px 40px;
        font-size: 13px;
    }
    .input-wrapper i {
        left: 15px;
    }
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .info-card {
        height: auto;
        padding: 15px;
        gap: 12px;
    }
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .info-details h4 {
        font-size: 12px;
    }
    .info-details a,
    .info-details p {
        font-size: 13px;
    }
}

