/*
 * Contact Us Page Styles
 * @package KAI_Theme
 */

/* ===== Hero Contact Info ===== */
.hero-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-contact-item a,
.hero-contact-item p {
    font-size: 1.0625rem;
    color: var(--cyan);
    text-decoration: none;
    margin: 0;
    transition: color 0.3s ease;
}
.hero-contact-item a:hover {
    color: var(--white);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--white);
}
.contact-wrapper {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
}
.contact-header {
    background: rgba(55, 145, 159, 0.08);
    padding: 1.5rem 2.5rem;
}
.contact-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-teal);
}
body.rtl .contact-header h2 {
    font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
.contact-body {
    padding: 2.5rem;
}

/* ===== Office Grid ===== */
.offices-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(55, 145, 159, 0.1);
}
.office-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 1rem;
}
body.rtl .office-card h3 {
    font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
.office-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}
.office-detail svg {
    width: 16px;
    height: 16px;
    stroke: var(--teal);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}
.office-detail p,
.office-detail a {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}
.office-detail a:hover {
    color: var(--teal);
}

/* ===== Contact Form (underline style) ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: var(--charcoal);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(55, 145, 159, 0.2);
    outline: none;
    transition: border-color 0.3s ease;
}
body.rtl .form-group input,
body.rtl .form-group textarea {
    font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(107, 114, 128, 0.5);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-submit {
    text-align: center;
    margin-top: 2rem;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: var(--deep-teal);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
body.rtl .btn-submit {
    font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
.btn-submit:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(35, 92, 111, 0.2);
}

/* ===== Form Status ===== */
.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    display: none;
}
.form-status.success {
    display: block;
    padding: 1rem 1.25rem;
    background: rgba(91, 192, 190, 0.1);
    color: var(--teal);
    border: 1px solid rgba(91, 192, 190, 0.3);
}
.form-status.error {
    display: block;
    padding: 1rem 1.25rem;
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ===== CF7/WPForms overrides ===== */
.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 0.875rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(55, 145, 159, 0.2);
    font-size: 1rem;
    color: var(--charcoal);
    transition: border-color 0.3s ease;
    outline: none;
}
.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus {
    border-color: var(--teal);
}
.contact-form .wpcf7-submit {
    display: inline-flex;
    padding: 1rem 3rem;
    background: var(--deep-teal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-form .wpcf7-submit:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(35, 92, 111, 0.2);
}

/* ===== Map ===== */
.contact-map-section { padding: 0; }
.contact-map-wrapper { width: 100%; height: 450px; position: relative; overflow: hidden; }
.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(30%) contrast(1.05);
    transition: filter 0.4s ease;
}
.contact-map-wrapper:hover iframe { filter: grayscale(0%) contrast(1); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .contact-header { padding: 1.25rem 1.5rem; }
    .contact-body { padding: 1.5rem; }
    .contact-map-wrapper { height: 280px; }
}
