/* ==========================================================================
   GreenMarket — Contact page
   Same shell as home / footer: 1224px, GMSans, #00b274, 20px cards.
   ========================================================================== */

.gm-contact {
    --c-green: #00b274;
    --c-green-600: #008e5d;
    --c-green-700: #009964;
    --c-ink: #3e3e3e;
    --c-ink-2: #5a5a5a;
    --c-muted: #888888;
    --c-line: #e7e7e7;
    --c-soft: #f4fbf8;
    --c-ease: cubic-bezier(.2, .7, .2, 1);
    padding: 12px 0 8px;
    color: var(--c-ink);
}

.page-content:has(.gm-contact) {
    margin-top: 8px;
    margin-bottom: 0;
}

.gm-contact,
.gm-contact :where(*:not(i):not([class^="fa"]):not([class*=" fa-"])) {
    font-family: "GMSans", "IRANSansX", Tahoma, sans-serif !important;
}

.gm-contact > .container {
    width: 100%;
    max-width: calc(var(--gm-s-content, 1224px) + 32px) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto;
    margin-right: auto;
}

.gm-contact :focus-visible {
    outline: 2px solid var(--c-green);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------- Header -------------------------------------------------------- */
.gm-contact__head {
    margin: 0 0 28px;
}

.gm-contact__kicker {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    color: var(--c-green-700);
}

.gm-contact__title {
    margin: 0 0 10px !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 44px !important;
    color: #232323 !important;
}

.gm-contact__lead {
    margin: 0;
    max-width: 640px;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: var(--c-ink-2);
}

/* ---------- Layout -------------------------------------------------------- */
.gm-contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 400px);
    gap: 24px;
    align-items: start;
}

.gm-contact__card,
.gm-contact__notice {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 20px;
}

.gm-contact__card {
    padding: 28px;
}

.gm-contact__card-title,
.gm-contact__notice-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    color: var(--c-ink);
}

.gm-contact__card-text {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 24px;
    color: var(--c-muted);
}

.gm-contact__aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Form ---------------------------------------------------------- */
.gm-contact__alert {
    display: none;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 24px;
}

.gm-contact__alert.is-on {
    display: block;
}

.gm-contact__alert p {
    margin: 0;
}

.gm-contact__alert p + p {
    margin-top: 4px;
}

.gm-contact__alert--error {
    background: #feeff0;
    color: #c44548;
}

.gm-contact__alert--success {
    background: #e8f8f2;
    color: var(--c-green-600);
}

.gm-contact__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.gm-contact__field--full {
    grid-column: 1 / -1;
}

.gm-contact__label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: var(--c-ink);
}

.gm-contact__req {
    color: #f25f63;
    font-weight: 600;
}

.gm-contact__input {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #e4e4e4 !important;
    border-radius: 12px;
    background: #fff;
    color: var(--c-ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea.gm-contact__input {
    height: auto;
    min-height: 148px;
    padding: 14px 16px;
    resize: vertical;
}

.gm-contact__input::placeholder {
    color: #a3a3a3;
}

.gm-contact__input:hover {
    border-color: #cfcfcf !important;
}

.gm-contact__input:focus {
    border-color: var(--c-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 178, 116, .14);
    outline: none;
}

.gm-contact__input[readonly] {
    background: #f7f7f7;
    color: #6e6e6e;
    cursor: default;
}

.gm-contact__input--ltr {
    direction: ltr;
    text-align: left;
}

.gm-contact__input--select {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.2 8 10l4-3.8' stroke='%236e6e6e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    cursor: pointer;
}

.gm-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin-top: 4px;
    padding: 0 20px;
    border: 0 !important;
    border-radius: 12px;
    background: var(--c-green);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, transform .18s var(--c-ease);
}

.gm-contact__submit:hover {
    background: var(--c-green-600);
}

.gm-contact__submit:active {
    transform: scale(.99);
}

.gm-contact__submit:disabled {
    opacity: .65;
    cursor: progress;
    transform: none;
}

/* ---------- Contact methods ---------------------------------------------- */
.gm-contact__hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: var(--c-soft);
    color: var(--c-green-700);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.gm-contact__hours svg {
    flex: 0 0 18px;
}

.gm-contact__list {
    display: flex;
    flex-direction: column;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.gm-contact__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 12px;
    color: inherit !important;
    text-decoration: none !important;
    transition: background .18s ease;
}

a.gm-contact__row:hover {
    background: var(--c-soft);
}

a.gm-contact__row:hover .gm-contact__value {
    color: var(--c-green-600) !important;
}

.gm-contact__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-soft);
}

.gm-contact__icon img,
.gm-contact__icon svg {
    width: 20px;
    height: 20px;
}

.gm-contact__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding-top: 2px;
    text-align: right;
}

.gm-contact__meta-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: var(--c-muted);
}

.gm-contact__value {
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    color: var(--c-ink) !important;
    text-align: right;
    word-break: break-word;
}

.gm-contact__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.gm-contact__social-label {
    width: 100%;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: var(--c-muted);
}

.gm-contact__social a {
    display: block;
    line-height: 0;
    border-radius: 12px;
    transition: transform .18s var(--c-ease);
}

.gm-contact__social a:hover {
    transform: translateY(-2px);
}

.gm-contact__social img {
    width: 36px;
    height: 36px;
}

/* ---------- Notice -------------------------------------------------------- */
.gm-contact__notice {
    padding: 22px 24px 18px;
    background: var(--c-soft);
    border-color: #d7efe6;
}

.gm-contact__notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 26px;
    color: var(--c-green-700);
}

.gm-contact__notice-body {
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    color: var(--c-ink-2);
}

.gm-contact__notice-body :where(p, span) {
    margin: 0;
}

.gm-contact__notice-body ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.gm-contact__notice-body li {
    position: relative;
    padding: 6px 18px 6px 0;
}

.gm-contact__notice-body li::before {
    content: "";
    position: absolute;
    top: 15px;
    right: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-green);
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 991.98px) {
    .gm-contact__layout {
        grid-template-columns: 1fr;
    }

    .gm-contact__title {
        font-size: 24px !important;
        line-height: 38px !important;
    }
}

@media (max-width: 639.98px) {
    .gm-contact__card {
        padding: 20px 16px 22px;
    }

    .gm-contact__fields {
        grid-template-columns: 1fr;
    }

    .gm-contact__lead {
        font-size: 15px;
        line-height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gm-contact *,
    .gm-contact *::before,
    .gm-contact *::after {
        transition: none !important;
        animation: none !important;
    }
}
