/* Parin Jewellers – Contact (Figma: Parin Jewellers – Contact (Redesign) + Mobile).
   Builds on css/home-v2.css (tokens, header, buttons, newsletter, footer). */

.pj-contact-page .pj-eyebrow {
    font-size: 12px;
    letter-spacing: 2.64px;
}

/* Breadcrumb (same as the shop and about pages) */
.pj-home .pj-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--pj-muted);
}

.pj-crumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pj-crumbs li + li::before {
    content: "/";
    color: var(--pj-gold);
}

.pj-home .pj-crumbs a:hover {
    color: var(--pj-maroon);
}

.pj-home .pj-crumbs [aria-current] {
    font-weight: 500;
    color: var(--pj-ink);
}

/* ---------- Page header + quick contact ---------- */
.pj-chead {
    padding: 56px 0 64px;
    background: var(--pj-sand);
}

.pj-chead__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.pj-home .pj-chead__h1 {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 64px;
    line-height: 1.05;
    color: var(--pj-ink);
}

.pj-home .pj-chead__lead {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--pj-muted);
}

.pj-home .pj-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pj-home .pj-quick__card {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    transition: transform 0.25s var(--pj-ease), box-shadow 0.25s var(--pj-ease);
}

.pj-home .pj-quick__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pj-shadow-card);
}

.pj-quick__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pj-maroon);
    color: #fff;
}

.pj-quick__icon--wa {
    background: var(--pj-whatsapp);
}

.pj-quick__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    line-height: normal;
}

.pj-home .pj-quick__text small {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 1.76px;
    color: var(--pj-gold-text);
}

.pj-home .pj-quick__text strong {
    font-weight: 600;
    font-size: 15px;
    color: var(--pj-ink);
    overflow-wrap: anywhere;
}

.pj-home .pj-quick__text span {
    font-size: 12px;
    color: var(--pj-muted);
}

/* ---------- Form + studio ---------- */
.pj-cmain {
    background: var(--pj-ivory);
}

.pj-cmain__inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-top: 80px;
    padding-bottom: 96px;
}

.pj-cform {
    flex: 1 1 0;
    min-width: 0;
    padding: 44px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(59, 13, 15, 0.06);
    scroll-margin-top: calc(var(--pj-header-bottom, 84px) + 16px);
}

.pj-cform__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.pj-home .pj-cform__title {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 38px;
    line-height: normal;
    color: var(--pj-ink);
}

.pj-home .pj-cform__sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pj-muted);
}

.pj-home .pj-cform__alert {
    margin-bottom: 22px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fbeaea;
    font-size: 13px;
    color: #9b1c1c;
}

/* The global `form {}` rule from sass/style.css is overridden here */
.pj-home .pj-cform__form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    margin: 0;
}

.pj-cform__row {
    display: flex;
    gap: 16px;
}

.pj-cform__row > .pj-cfield {
    flex: 1 1 0;
    min-width: 0;
}

.pj-home .pj-cfield {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.pj-home .pj-cfield__label {
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 13px;
    line-height: normal;
    color: var(--pj-ink);
}

.pj-cfield__label span {
    margin-left: 2px;
    color: var(--pj-maroon);
}

.pj-home .pj-cfield__input {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--pj-line);
    border-radius: 12px;
    background: var(--pj-ivory);
    font-size: 14px;
    color: var(--pj-ink);
    box-shadow: none;
    transition: border-color 0.2s var(--pj-ease), box-shadow 0.2s var(--pj-ease);
}

.pj-cfield__input::placeholder {
    color: #9a8c86;
    opacity: 1;
}

.pj-home .pj-cfield__input:focus {
    border-color: var(--pj-maroon);
    outline: none;
    box-shadow: 0 0 0 0.5px var(--pj-maroon);
}

.pj-home .pj-cfield__input[aria-invalid="true"] {
    border-color: #b42318;
    box-shadow: 0 0 0 0.5px #b42318;
}

.pj-home .pj-cfield__textarea {
    height: 150px;
    padding: 15px 16px;
    line-height: 1.55;
    resize: vertical;
}

.pj-cfield__prefixed {
    position: relative;
}

.pj-home .pj-cfield__prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--pj-ink);
    transform: translateY(-50%);
    pointer-events: none;
}

.pj-cfield__prefix::after {
    content: "";
    width: 1px;
    height: 18px;
    background: var(--pj-line);
}

.pj-home .pj-cfield__prefixed .pj-cfield__input {
    padding-left: 58px;
}

.pj-home .pj-cfield__error {
    font-size: 12px;
    color: #b42318;
}

/* Topic chips are radio buttons */
.pj-home .pj-ctopics .pj-cfield__label {
    float: none;
    width: auto;
    margin-bottom: 10px;
}

.pj-ctopics__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pj-home .pj-ctopic {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.pj-ctopic input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pj-home .pj-ctopic span {
    display: block;
    padding: 9px 16px;
    border: 1px solid var(--pj-line);
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    font-size: 13px;
    line-height: normal;
    color: var(--pj-ink);
    transition: background-color 0.2s var(--pj-ease), border-color 0.2s var(--pj-ease), color 0.2s var(--pj-ease);
}

.pj-ctopic:hover span {
    border-color: var(--pj-maroon);
}

.pj-home .pj-ctopic input:checked + span {
    border-color: var(--pj-maroon);
    background: var(--pj-maroon);
    color: #fff;
}

.pj-ctopic input:focus-visible + span {
    outline: 2px solid var(--pj-gold);
    outline-offset: 2px;
}

/* Honeypot for bots */
.pj-cform__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pj-cform__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pj-home .pj-cform__note {
    font-size: 12px;
    color: var(--pj-muted);
}

.pj-home .pj-cform__note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pj-home .pj-cform__note a:hover {
    color: var(--pj-maroon);
}

.pj-home .pj-cform__send {
    height: auto;
    padding: 16px 34px;
}

.pj-home .pj-cform__send.is-busy {
    opacity: 0.7;
    cursor: progress;
}

/* Sent */
.pj-cform__done {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    outline: none;
}

.pj-cform__tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1f8a4c;
    color: #fff;
    box-shadow: 0 0 0 10px #e6f4ec;
    margin: 10px 0 8px 10px;
}

.pj-cform__done-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.pj-home .pj-cform__done-ctas .pj-btn {
    height: auto;
    padding: 14px 24px;
    font-size: 14px;
}

/* Studio card */
.pj-cstudio {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 20px;
    width: 440px;
}

.pj-cstudio__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 36px;
    border-radius: 28px;
    background: var(--pj-maroon);
}

.pj-home .pj-cstudio .pj-eyebrow {
    color: #e9c9a0;
}

.pj-home .pj-cstudio__name {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 34px;
    line-height: normal;
    color: var(--pj-ivory);
}

.pj-home .pj-cstudio__address {
    margin: 0;
    font-style: normal;
    font-size: 14px;
    line-height: 1.65;
    color: #ebd9d0;
}

.pj-home .pj-cstudio__hours {
    align-self: stretch;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 14px;
}

.pj-cstudio__hours > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
}

.pj-cstudio__hours > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pj-home .pj-cstudio__hours dt {
    font-weight: 400;
    color: #ebd9d0;
}

.pj-home .pj-cstudio__hours dd {
    margin: 0;
    font-weight: 500;
    color: var(--pj-ivory);
    white-space: nowrap;
}

.pj-home .pj-cstudio__hours dd.is-closed {
    color: #e9c9a0;
}

.pj-cstudio__ctas {
    display: flex;
    align-self: stretch;
    gap: 12px;
}

.pj-home .pj-cstudio__ctas .pj-btn {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    padding: 14px 18px;
    font-size: 14px;
}

.pj-home .pj-cstudio__call {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.pj-home .pj-cstudio__call:hover {
    border-color: #fff;
    background: #fff;
    color: var(--pj-maroon);
}

/* Map */
.pj-cmap {
    position: relative;
    aspect-ratio: 440 / 300;
    overflow: hidden;
    border: 1px solid var(--pj-line);
    border-radius: 28px;
    background-color: var(--pj-sand);
    background-image:
        linear-gradient(#e2d3be 1px, transparent 1px),
        linear-gradient(90deg, #e2d3be 1px, transparent 1px);
    background-size: 93px 77px;
}

.pj-cmap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: sepia(0.15) saturate(0.9);
}

.pj-home .pj-cmap__btn {
    position: absolute;
    left: 15px;
    bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-weight: 500;
    font-size: 13px;
    color: var(--pj-ink);
    transition: color 0.2s var(--pj-ease);
}

.pj-home .pj-cmap__btn:hover {
    color: var(--pj-maroon);
}

/* ---------- Quick help ---------- */
.pj-chelp {
    padding-bottom: 104px;
    background: var(--pj-ivory);
}

.pj-chelp__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.pj-home .pj-chelp__title {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 44px;
    line-height: normal;
    color: var(--pj-ink);
}

.pj-home .pj-chelp__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pj-chelp__list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 26px 24px;
    border: 1px solid var(--pj-line);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.25s var(--pj-ease), box-shadow 0.25s var(--pj-ease);
}

.pj-chelp__list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--pj-shadow-card);
}

.pj-chelp__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pj-sand);
    color: var(--pj-maroon);
}

.pj-home .pj-chelp__list h3 {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 23px;
    line-height: normal;
    color: var(--pj-ink);
}

.pj-home .pj-chelp__list p {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.6;
    color: var(--pj-muted);
}

.pj-home .pj-chelp__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--pj-maroon);
}

.pj-chelp__link .pj-icon {
    transition: transform 0.2s var(--pj-ease);
}

.pj-chelp__link:hover .pj-icon {
    transform: translateX(3px);
}

/* Card is clickable as a whole via its link */
.pj-chelp__list li {
    position: relative;
}

.pj-chelp__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
}

/* ---------- Laptop ---------- */
@media (max-width: 1199px) {
    .pj-home .pj-quick {
        gap: 12px;
    }

    .pj-home .pj-quick__card {
        gap: 12px;
        padding: 18px;
    }

    .pj-quick__icon {
        width: 42px;
        height: 42px;
    }

    .pj-home .pj-quick__text strong {
        font-size: 14px;
    }

    .pj-cmain__inner {
        gap: 28px;
    }

    .pj-cform {
        padding: 36px;
    }

    .pj-cstudio {
        width: 360px;
    }

    .pj-cstudio__card {
        padding: 30px;
    }

    .pj-cstudio__ctas {
        flex-direction: column;
    }

    .pj-home .pj-chelp__list {
        gap: 16px;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
    .pj-chead {
        padding: 40px 0 48px;
    }

    .pj-home .pj-chead__h1 {
        font-size: 52px;
    }

    .pj-home .pj-quick,
    .pj-home .pj-chelp__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pj-home .pj-quick {
        margin-top: 32px;
    }

    .pj-cmain__inner {
        flex-direction: column;
        align-items: stretch;
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .pj-cstudio {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto;
    }

    .pj-cstudio__ctas {
        flex-direction: row;
    }

    .pj-cmap {
        aspect-ratio: auto;
        min-height: 300px;
    }

    .pj-chelp {
        padding-bottom: 72px;
    }

    .pj-home .pj-chelp__title {
        font-size: 38px;
    }
}

/* ---------- Mobile (Figma 390) ---------- */
@media (max-width: 767px) {
    .pj-chead {
        padding: 28px 0 36px;
    }

    .pj-home .pj-chead__h1 {
        font-size: 42px;
    }

    .pj-home .pj-chead__lead {
        font-size: 15px;
    }

    .pj-home .pj-quick {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 24px;
    }

    .pj-home .pj-quick__card {
        gap: 16px;
        padding: 16px;
    }

    .pj-quick__icon {
        width: 48px;
        height: 48px;
    }

    .pj-home .pj-quick__text strong {
        font-size: 15px;
    }

    .pj-cmain__inner {
        gap: 20px;
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .pj-cform {
        padding: 28px 20px;
    }

    .pj-cform__head {
        margin-bottom: 18px;
    }

    .pj-home .pj-cform__title {
        font-size: 28px;
    }

    .pj-home .pj-cform__form {
        gap: 18px;
    }

    .pj-cform__row {
        flex-direction: column;
        gap: 18px;
    }

    .pj-home .pj-cfield__input {
        font-size: 16px; /* stops iOS zooming into the field */
    }

    .pj-cform__foot {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pj-home .pj-cform__send {
        width: 100%;
    }

    .pj-cstudio {
        display: flex;
    }

    .pj-cstudio__card {
        padding: 28px 24px;
    }

    .pj-home .pj-cstudio__name {
        font-size: 28px;
    }

    .pj-home .pj-cstudio__hours {
        font-size: 13px;
    }

    .pj-cstudio__hours > div {
        padding: 14px;
    }

    .pj-home .pj-cstudio__ctas .pj-btn {
        padding: 14px 8px;
        font-size: 13px;
        letter-spacing: 0;
    }

    .pj-cmap {
        aspect-ratio: 350 / 300;
        min-height: 0;
    }

    .pj-chelp {
        padding-bottom: 56px;
    }

    .pj-chelp__head {
        margin-bottom: 24px;
    }

    .pj-home .pj-chelp__title {
        font-size: 32px;
    }

    .pj-home .pj-chelp__list {
        gap: 12px;
    }

    .pj-chelp__list li {
        padding: 18px 16px;
    }

    .pj-home .pj-chelp__list h3 {
        font-size: 19px;
    }
}

@media (max-width: 359px) {
    .pj-home .pj-chelp__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .pj-cstudio__ctas {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pj-home .pj-quick__card,
    .pj-chelp__list li,
    .pj-chelp__link .pj-icon {
        transition: none;
    }
}
