/* ============================================
   কন্ট্যাক্ট পেজ স্টাইল
   ============================================ */

.ul-contact-page {
    padding: 120px 0 60px;
    background: var(--ast-global-color-5);
}

/* ---------- হিরো সেকশন ---------- */
.contact-hero {
    text-align: center;
    margin-bottom: 50px;
}
.contact-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.contact-hero p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--ast-global-color-3);
}

/* ---------- গ্রিড: ফর্ম + তথ্য ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* ---------- ফর্ম স্টাইল ---------- */
.contact-form-wrapper {
    background: var(--ast-global-color-4);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ast-global-color-6);
}
.contact-form-wrapper h2 {
    margin-bottom: 28px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 14px;
}
.contact-form-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--ast-global-color-0);
    border-radius: 3px;
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ast-global-color-2);
    letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--ast-global-color-6);
    border-radius: 14px;
    background: var(--ast-global-color-5);
    color: var(--ast-global-color-2);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--ast-global-color-3);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ast-global-color-0);
    background: var(--ast-global-color-4);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.08), 0 2px 8px rgba(13, 71, 161, 0.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ast-global-color-3);
    opacity: 0.6;
}
.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}
/* ---------- Custom Select ---------- */
.custom-select-wrapper {
    position: relative;
}
.custom-select-wrapper .native-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid var(--ast-global-color-6);
    border-radius: 14px;
    background: var(--ast-global-color-5);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.custom-select-trigger:hover {
    border-color: var(--ast-global-color-3);
}
.custom-select-trigger.open {
    border-color: var(--ast-global-color-0);
    background: var(--ast-global-color-4);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.08), 0 2px 8px rgba(13, 71, 161, 0.04);
}
.custom-select-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--ast-global-color-3);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-select-text.selected {
    color: var(--ast-global-color-2);
}
.custom-select-arrow {
    flex-shrink: 0;
    color: var(--ast-global-color-3);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.custom-select-trigger.open .custom-select-arrow {
    transform: rotate(180deg);
}
/* ---------- Dropdown ---------- */
.custom-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--ast-global-color-5);
    border: 1px solid var(--ast-global-color-6);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
}
.custom-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-option {
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--ast-global-color-2);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid var(--ast-global-color-6);
}
.custom-option:last-child {
    border-bottom: none;
}
.custom-option:hover,
.custom-option.highlighted {
    background: rgba(13, 71, 161, 0.06);
}
.custom-option.selected {
    background: var(--ast-global-color-0);
    color: #fff;
    font-weight: 500;
}
.custom-option.selected:hover {
    background: var(--ast-global-color-0);
}
/* Scrollbar */
.custom-options::-webkit-scrollbar {
    width: 6px;
}
.custom-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-options::-webkit-scrollbar-thumb {
    background: var(--ast-global-color-6);
    border-radius: 3px;
}

html[data-theme="dark"] .custom-select-trigger {
    background: var(--ast-global-color-6);
}
html[data-theme="dark"] .custom-select-trigger.open {
    background: var(--ast-global-color-5);
}
html[data-theme="dark"] .custom-options {
    background: var(--ast-global-color-5);
    border-color: var(--ast-global-color-6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .custom-option {
    border-color: var(--ast-global-color-6);
}
html[data-theme="dark"] .custom-option:hover,
html[data-theme="dark"] .custom-option.highlighted {
    background: rgba(74, 144, 226, 0.12);
}
html[data-theme="dark"] .custom-option.selected {
    background: var(--ast-global-color-0);
    color: #fff;
}
.contact-form-wrapper .btn-primary {
    width: 100%;
    justify-content: center;
    cursor: pointer;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-form-wrapper .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.25);
}
.contact-form-wrapper .btn-primary:active {
    transform: translateY(0);
}
.form-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    font-weight: 500;
}
.form-message.show {
    display: block;
}
.form-message.success {
    background: rgba(67, 160, 71, 0.08);
    color: var(--ast-global-color-1);
    border: 1px solid rgba(67, 160, 71, 0.2);
}
.form-message.error {
    background: rgba(229, 57, 53, 0.08);
    color: #e53935;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
    background: var(--ast-global-color-6);
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus {
    background: var(--ast-global-color-5);
}

/* ---------- যোগাযোগ তথ্য ---------- */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.info-card {
    background: var(--ast-global-color-4);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.info-item:last-of-type {
    margin-bottom: 0;
}
.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--ast-global-color-5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.info-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.info-content p,
.info-content a {
    color: var(--ast-global-color-3);
    text-decoration: none;
    line-height: 1.6;
}
.info-content a:hover {
    color: var(--ast-global-color-0);
}
.info-note {
    font-size: 0.85rem;
    color: var(--ast-global-color-0);
    font-weight: 500;
    margin-top: 2px;
}
.map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}
.map-container:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
    width: 100%;
    height: 220px;
    border: none;
    display: block;
}
.office-map {
    margin-bottom: 32px;
}
.office-map:last-of-type {
    margin-bottom: 24px;
}

/* ---------- Dark Mode: Map ---------- */
html[data-theme="dark"] .map-container iframe {
    filter: invert(0.9) hue-rotate(180deg);
    transition: filter 0.4s ease;
}

/* ---------- FAQ সেকশন ---------- */
.contact-faq {
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}
.faq-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.faq-header p {
    color: var(--ast-global-color-3);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-faq {
    color: var(--ast-global-color-2);
    --faq-border: #E2E8F0;
    --faq-hover-bg: #E2E8F0;
    --faq-open-bg: #F1F5F9;
    --faq-answer-color: #334155;
}

html[data-theme="dark"] .contact-faq {
    --faq-border: #334155;
    --faq-hover-bg: #334155;
    --faq-open-bg: #1E293B;
    --faq-answer-color: #CBD5E1;
}

.faq-item {
    border: 1px solid var(--faq-border);
    border-radius: 16px;
    background: var(--ast-global-color-4);
    overflow: hidden;
    transition: border-color 0.2s, border-left-width 0.2s;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--ast-global-color-2);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.faq-question:hover,
.faq-question:focus,
.faq-question:active,
.faq-question:focus-visible {
    background: var(--faq-hover-bg);
    color: var(--ast-global-color-2);
}
.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ast-global-color-0);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq-item.open {
    background: var(--faq-open-bg);
    border-left: 3px solid var(--ast-global-color-0);
}
.faq-item.open .faq-question {
    background: var(--faq-open-bg);
}
.faq-item.open .faq-question:hover {
    background: var(--faq-hover-bg);
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--faq-answer-color);
    background: var(--ast-global-color-4);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---------- ট্যাবলেট (768px - 1023px) ---------- */
@media (max-width: 1023px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    .faq-header h2 {
        font-size: 1.7rem;
    }
}

/* ---------- মোবাইল (≤768px) ---------- */
@media (max-width: 768px) {
    .ul-contact-page {
        padding: 100px 0 40px;
    }
    .contact-grid {
        gap: 32px;
    }
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    .contact-form-wrapper,
    .info-card {
        padding: 24px;
    }
    .office-map iframe {
        height: 180px;
    }
    .contact-faq {
        margin-top: 60px;
    }
    .faq-header h2 {
        font-size: 1.5rem;
    }
    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    .faq-answer-inner {
        padding: 0 18px 16px;
        font-size: 0.9rem;
    }
}
