/* ================================================================
   contact-v2.css — Contact Us page redesign
   Scope: Contact page only. Loaded once from page/contact.blade.php.
   Relies on tokens defined in main.css (--mta-*, --accent-color, etc.)
   ================================================================ */

/* ── Optional-field annotation inside the phone/email labels ─────── */
.mta-optional-tag {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 500;
    color: color-mix(in srgb, var(--default-color), transparent 15%);
}

/* ── Contact method hint / at-least-one-of validation ────────────── */
.mta-contact-hint {
    font-size: 15.5px;
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    margin: -6px 0 4px;
}

.mta-contact-hint.mta-contact-hint-error {
    color: var(--accent-color);
    font-weight: 700;
}

.mta-contact-method-invalid {
    border-color: var(--accent-color) !important;
}

/* ── Branch cards ─────────────────────────────────────────────── */
.mta-branch-card {
    background: var(--surface-color);
    border-radius: var(--mta-radius-lg);
    box-shadow: var(--mta-shadow-sm);
    padding: 32px 24px;
    height: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mta-branch-card:hover {
    box-shadow: var(--mta-shadow-md);
    transform: translateY(-4px);
}

.mta-branch-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.mta-branch-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.mta-branch-address {
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    margin-bottom: 14px;
    min-height: 40px;
}

.mta-branch-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--heading-color);
    margin-bottom: 16px;
    direction: ltr;
}

.mta-branch-phone:hover {
    color: var(--accent-color);
}

.mta-branch-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--mta-shadow-cta);
    transition: background 0.25s ease, transform 0.25s ease;
}

.mta-branch-map-btn:hover {
    color: #ffffff;
    background: var(--accent-color-dark, #A32D26);
    transform: translateY(-2px);
}

/* ── Attachments (paperclip) ─────────────────────────────────────── */
.mta-attach-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mta-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px dashed color-mix(in srgb, var(--default-color), transparent 55%);
    background: transparent;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.mta-attach-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 94%);
}

.mta-attach-btn .bi {
    font-size: 1.1rem;
}

.mta-attach-hint {
    font-size: 13px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    margin: 8px 0 0;
}

.mta-attach-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mta-attach-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
    border-radius: 10px;
    background: color-mix(in srgb, var(--default-color), transparent 96%);
}

.mta-attach-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.mta-attach-name {
    font-size: 14px;
    color: var(--heading-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mta-attach-size {
    flex-shrink: 0;
    font-size: 12.5px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    direction: ltr;
}

.mta-attach-remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, #BE362E, transparent 88%);
    color: #BE362E;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mta-attach-remove:hover {
    background: #BE362E;
    color: #ffffff;
}

.mta-attach-error {
    margin: 10px 0 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #BE362E;
}
