/* The contact page (templates/contact.php): contact.html's own styles, on style.css's (main.css) variables.
   Its toast is the site's (wp.css). Its «.copy» buttons are kept inside the cards, as the footer's copyright line
   is «.copy» too. */

/* page head */
.c-hero {
    padding: 28px 0 8px
}

.c-hero .crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 14px
}

.c-hero .crumbs a:hover {
    color: var(--primary)
}

.c-hero .crumbs i {
    font-size: .65rem
}

/* contact.html's current page is as plain as the rest of the trail (shop.css makes it bold) */
.c-hero .crumbs [aria-current] {
    color: inherit;
    font-weight: inherit
}

h1.title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.5
}

nav ul li a[aria-current="page"] {
    color: var(--primary)
}

/* answering now or closed */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: .92rem
}

.status i {
    font-size: .6rem;
    color: var(--muted)
}

.status[data-open="true"] i {
    color: var(--primary);
    animation: pulse 1.6s infinite
}

.status[data-open="false"] i {
    color: #e5484d
}

@keyframes pulse {
    50% {
        opacity: .3
    }
}

/* the page's own text, when the page has any */
.c-text {
    padding: 8px 0 0
}

/* contact cards */
.c-info-sec {
    padding: 20px 0 30px
}

.c-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px
}

.c-card {
    align-items: flex-start;
    transition: .25s
}

.c-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow)
}

.c-val {
    display: block;
    font-weight: 500;
    text-align: right;
    color: var(--primary-dark)
}

[data-theme="dark"] .c-val {
    color: var(--primary)
}

.c-val:hover {
    text-decoration: underline
}

.c-card .copy {
    margin-top: 2px;
    background: var(--surface-2);
    border: 0;
    border-radius: 99px;
    padding: 0 12px;
    font-size: .8rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .2s
}

.c-card .copy:hover {
    background: var(--primary);
    color: #fff
}

/* form and side box */
.c-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 860px;
    margin-inline: auto
}

.c-form-box,
.social-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px
}

.c-h {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 20px
}

.c-h i {
    color: var(--primary)
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.fg {
    margin-bottom: 14px
}

.fg label {
    display: block;
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 4px
}

.fg label em {
    color: #e5484d;
    font-style: normal
}

.opt {
    color: var(--muted);
    font-weight: 400;
    font-size: .8rem
}

textarea.field {
    resize: vertical;
    min-height: 130px;
    line-height: 1.9
}

.err {
    display: block;
    min-height: 1.4em;
    color: #e5484d;
    font-size: .82rem
}

.field[aria-invalid="true"] {
    border-color: #e5484d
}

.field[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(229, 72, 77, .2)
}

.msg-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.counter {
    color: var(--muted);
    font-size: .82rem;
    white-space: nowrap
}

.send {
    width: 100%;
    padding: 13px;
    font-size: 1rem
}

.send[disabled] {
    opacity: .7;
    cursor: wait;
    transform: none
}

.send .spin {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rot .7s linear infinite
}

@keyframes rot {
    to {
        transform: rotate(360deg)
    }
}

.c-form-box .notice-box {
    margin-bottom: 18px
}

.social-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px
}

/* frequently asked questions */
.faq {
    display: grid;
    gap: 12px;
    max-width: 860px
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 20px;
    transition: .2s
}

.faq details[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow)
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .75rem;
    color: var(--primary);
    transition: .25s
}

.faq details[open] summary::after {
    transform: rotate(180deg)
}

.faq p {
    color: var(--muted);
    padding-bottom: 16px
}

/* small screens */
@media (max-width:560px) {
    .row2 {
        grid-template-columns: 1fr;
        gap: 0
    }

    .c-form-box {
        padding: 20px
    }

    h1.title {
        font-size: 1.6rem
    }

    .social-box {
        flex-direction: column;
        text-align: center
    }
}

@media (prefers-reduced-motion:reduce) {

    .status i,
    .send .spin {
        animation: none
    }
}
