/* ============================================================
   contact.css
   Loaded sitewide on public pages.

   Two things it fixes beyond the contact page itself:
   - .section-padding is used by home, jobs, services, contact and 404, but was
     never defined in any stylesheet those pages load.
   - The old contact page styled itself with .contact-title / .contact-info-card
     from css/mycss.css, which is only loaded for logged-in dashboards. Public
     pages never got those rules, so the page rendered unstyled.
   ============================================================ */

/* ---------- Section rhythm ---------- */
.section-padding {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.section-padding.pt-0 {
    padding-top: 0;
}

@media (max-width: 991.98px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ---------- Contact details column ---------- */
.contact-details {
    margin: 0;
    font-style: normal;
}

.contact-details-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eceef1;
}

.contact-details-item:last-child {
    border-bottom: 0;
}

.contact-details-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: rgba(123, 30, 58, 0.08);
    color: #7b1e3a;
    font-size: 1.05rem;
}

.contact-details-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.contact-details-text {
    margin: 0;
    color: #5a5f73;
    line-height: 1.6;
    word-break: break-word;
}

.contact-details-text a {
    color: #5a5f73;
    text-decoration: none;
}

.contact-details-text a:hover,
.contact-details-text a:focus {
    color: #7b1e3a;
    text-decoration: underline;
}

/* ---------- Form card ---------- */
.contact-form-card {
    background: #fff;
    border: 1px solid #e3e5ea;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(20, 33, 61, 0.04);
    height: 100%;
}

@media (max-width: 575.98px) {
    .contact-form-card {
        padding: 1.25rem;
    }
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.contact-form-card .form-label {
    font-weight: 500;
    color: #2b2d42;
    font-size: 0.95rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    /* iOS zooms the viewport on focus for anything under 16px. */
    font-size: 1rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: #7b1e3a;
    box-shadow: 0 0 0 0.2rem rgba(123, 30, 58, 0.1);
}

.form-note {
    font-size: 0.85rem;
    color: #6c7286;
}

.btn-submit {
    min-width: 160px;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

/* ---------- Honeypot ----------
   Hidden from people, still visible to naive bots, and removed from the tab
   order. Not display:none, because many bots skip those fields entirely. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Map ---------- */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e3e5ea;
    line-height: 0;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* ---------- Alerts inside the form ---------- */
.contact-form-card .alert {
    border-radius: 8px;
    font-size: 0.95rem;
}

.contact-form-card .alert ul {
    padding-left: 1.1rem;
}
