/* KG Technologys — supplemental styles for contact + quote pages.
   Loaded on top of the existing style.css; these only ADD styles
   (no overrides of unrelated selectors). */

/* ---------- Contact info cards: tappable with hover effect ---------- */
.contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-card.contact-card-link {
    color: inherit;
    cursor: pointer;
}

.contact-card.contact-card-link:hover,
.contact-card.contact-card-link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px -22px rgba(0, 87, 255, 0.45);
    text-decoration: none;
    outline: none;
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(0, 87, 255, 0.12), rgba(0, 87, 255, 0.04));
    color: var(--bs-primary, #0057ff);
    margin-bottom: 0.75rem;
    transition: transform 220ms ease, background 220ms ease;
}

.contact-card.contact-card-link:hover .contact-card-icon {
    transform: scale(1.06);
    background: linear-gradient(135deg, rgba(0, 87, 255, 0.22), rgba(0, 87, 255, 0.08));
}

.contact-card h3 {
    font-size: 1.15rem;
    margin: 0.25rem 0 0.4rem;
}

.contact-card p {
    margin: 0;
    color: #5a6477;
    line-height: 1.55;
}

.contact-card-cta {
    margin-top: 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-primary, #0057ff);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- Map panel (right column on Contact page) ---------- */
.map-panel-tall {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-panel-tall .map-panel-copy {
    margin-bottom: 1.25rem;
}

.map-embed {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px -22px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(15, 23, 42, 0.08);
    flex: 1 1 auto;
    min-height: 280px;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

/* ---------- Contact stack on Quote page: tappable rows ---------- */
.contact-stack a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.contact-stack a:hover,
.contact-stack a:focus-visible {
    color: var(--bs-primary, #0057ff);
    outline: none;
}

/* ---------- Form: invalid feedback shown only after validation runs ---------- */
.quote-form .invalid-feedback {
    font-size: 0.825rem;
}

.quote-form.was-validated .form-control:invalid,
.quote-form.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.quote-form.was-validated .form-control:valid,
.quote-form.was-validated .form-select:valid {
    border-color: #198754;
}

/* ---------- Submit button: spinner state ---------- */
.btn-label,
.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

button[type="submit"]:disabled {
    opacity: 0.85;
    cursor: progress;
}

/* ---------- Toast tweaks ---------- */
#kgToastContainer .toast {
    min-width: 300px;
    max-width: 380px;
    border-radius: 12px;
}

#kgToastContainer .toast .toast-body {
    padding: 0.85rem 1rem;
}

#kgToastContainer .toast strong {
    display: block;
    font-size: 0.95rem;
}

#kgToastContainer .toast .small {
    font-size: 0.8rem;
    opacity: 0.95;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 575.98px) {
    .contact-card {
        padding: 1.5rem 1.25rem;
    }
    .contact-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    #kgToastContainer {
        left: 0.75rem;
        right: 0.75rem;
        top: 0.75rem;
    }
    #kgToastContainer .toast {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}
