/*
==========================================================================

 Project     : Signature Spreads and Treats by Di
 Version     : 1.0.0
 Author      : JB

===========================================================================
*/

/* PAGE-SPECIFIC HERO IMAGE POSITION */

.custom-orders-page .site-hero-media img {
    object-position: center right;
}

/* SHARED PAGE TYPOGRAPHY */

.custom-orders-page .custom-orders-eyebrow {
    width: max-content;
    max-width: 100%;
    margin-bottom: var(--space-md);
    color: var(--color-primary-dark);
    font-size: 0.68rem;
    font-weight: var(--fw-bold);
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.custom-orders-page .custom-orders-section-header {
    max-width: 820px;
    margin:
        0
        auto
        clamp(3rem, 5vw, 4.75rem);
    text-align: center;
}

.custom-orders-page
.custom-orders-section-header
.custom-orders-eyebrow {
    margin-inline: auto;
    text-align: center;
}

.custom-orders-page .custom-orders-section-header h2,
.custom-orders-page .custom-orders-intro-content h2,
.custom-orders-page .custom-orders-request-intro h2 {
    margin-bottom: var(--space-xl);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 4.8vw, 4.9rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.custom-orders-page .custom-orders-section-header h2 em,
.custom-orders-page .custom-orders-intro-content h2 em,
.custom-orders-page .custom-orders-request-intro h2 em {
    display: block;
    margin-top: 0.12em;
    color: var(--color-primary-dark);
    font-size: 0.8em;
    font-weight: var(--fw-medium);
    line-height: 1.05;
}

.custom-orders-page
.custom-orders-section-header > p:last-child {
    max-width: 66ch;
    margin-inline: auto;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* CUSTOM ORDER INTRODUCTION */

.custom-orders-page .custom-orders-intro {
    position: relative;
    isolation: isolate;
    padding:
        clamp(5rem, 8vw, 8rem)     /* TOP */
        0                           /* LEFT + RIGHT */
        clamp(2.5rem, 4vw, 4rem);  /* BOTTOM */
    overflow: hidden;
    background-color: var(--color-background);
}

.custom-orders-page .custom-orders-intro::before {
    content: "";
    position: absolute;
    top: 12%;
    right: -210px;
    z-index: -1;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(182, 106, 34, 0.065);
    border-radius: 50%;
    pointer-events: none;
}

.custom-orders-page .custom-orders-intro-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(380px, 0.88fr);
    align-items: start;
    gap: clamp(3.5rem, 8vw, 8rem);
    max-width: 1280px;
    margin-inline: auto;
}

/* INTRODUCTION VISUAL */

.custom-orders-page .custom-orders-intro-visual {
    position: relative;
    min-width: 0;
    margin: 0;
}

.custom-orders-page .custom-orders-intro-image {
    position: relative;
    overflow: hidden;
    border-radius:
        var(--radius-xl)
        var(--radius-xl)
        var(--radius-md)
        var(--radius-md);
    background-color: var(--color-section);
    box-shadow:
        0 28px 70px rgba(75, 46, 30, 0.12);
}

.custom-orders-page .custom-orders-intro-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent 60%,
            rgba(75, 46, 30, 0.08) 100%
        );
}

.custom-orders-page .custom-orders-intro-image img {
    display: block;
    width: 100%;
    height: auto;
}

.custom-orders-page .custom-orders-intro-note {
    position: absolute;
    right: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(-2rem, -2vw, -1.25rem);
    z-index: 2;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-sm);
    width: min(280px, calc(100% - 2rem));
    padding:
        var(--space-md)
        var(--space-lg);
    border: 1px solid rgba(220, 201, 170, 0.78);
    border-radius: var(--radius-lg);
    background-color: rgba(252, 250, 246, 0.97);
    box-shadow:
        0 18px 42px rgba(75, 46, 30, 0.13);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-orders-page
.custom-orders-intro-note > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(182, 106, 34, 0.18);
    border-radius: 50%;
    color: var(--color-primary-dark);
}

.custom-orders-page
.custom-orders-intro-note p {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.35;
}

/* INTRODUCTION CONTENT */

.custom-orders-page .custom-orders-intro-content {
    min-width: 0;
}

.custom-orders-page
.custom-orders-intro-content
.custom-orders-eyebrow {
    margin-inline: 0;
    text-align: left;
}

.custom-orders-page
.custom-orders-intro-content h2 {
    max-width: 620px;
    font-size: clamp(3.2rem, 5vw, 5.2rem);
    line-height: 0.94;
}

.custom-orders-page .custom-orders-intro-story {
    max-width: 58ch;
}

.custom-orders-page
.custom-orders-intro-story p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    font-size: 0.94rem;
    line-height: 1.82;
    text-wrap: pretty;
}

.custom-orders-page
.custom-orders-intro-story p:last-child {
    margin-bottom: 0;
}

.custom-orders-page
.custom-orders-intro-promise {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: var(--space-md);
    max-width: 540px;
    margin-top: var(--space-xl);
    padding:
        var(--space-lg)
        0;
    border-top: 1px solid rgba(220, 201, 170, 0.72);
    border-bottom: 1px solid rgba(220, 201, 170, 0.72);
}

.custom-orders-page
.custom-orders-intro-promise-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(182, 106, 34, 0.18);
    border-radius: 50%;
    background-color: rgba(182, 106, 34, 0.055);
    color: var(--color-primary-dark);
}

.custom-orders-page
.custom-orders-intro-promise h3 {
    margin-bottom: 0.25rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.38rem;
    font-weight: 600;
    line-height: 1.15;
}

.custom-orders-page
.custom-orders-intro-promise p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.76rem;
    line-height: 1.6;
}

.custom-orders-page
.custom-orders-intro-content
.custom-orders-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: var(--space-xl);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: var(--fw-bold);
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.custom-orders-page
.custom-orders-intro-content
.custom-orders-text-link span {
    transition:
        transform var(--transition-fast);
}

.custom-orders-page
.custom-orders-intro-content
.custom-orders-text-link:hover span,
.custom-orders-page
.custom-orders-intro-content
.custom-orders-text-link:focus-visible span {
    transform: translateX(4px);
}


/* CUSTOM ORDER PROCESS */

.custom-orders-page .custom-orders-process {
    padding:
        clamp(2.5rem, 4vw, 4rem)     /* TOP */
        0                             /* LEFT + RIGHT */
        clamp(5rem, 8vw, 7.5rem);    /* BOTTOM */
    background-color: var(--color-background);
}

.custom-orders-page .custom-orders-process-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.custom-orders-page .custom-orders-process-list::before {
    content: "";
    position: absolute;
    top: 26px;
    right: 10%;
    left: 10%;
    height: 1px;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(182, 106, 34, 0.34),
            transparent
        );
}

.custom-orders-page .custom-orders-process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.custom-orders-page .custom-orders-process-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin:
        0
        auto
        var(--space-lg);
    border: 1px solid rgba(182, 106, 34, 0.28);
    border-radius: 50%;
    background-color: var(--color-background);
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.custom-orders-page .custom-orders-process-step h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.1;
}

.custom-orders-page .custom-orders-process-step p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.8rem;
    line-height: 1.68;
}

/* CUSTOM ORDER REQUEST */

.custom-orders-page .custom-orders-request {
    position: relative;
    isolation: isolate;
    padding:
        clamp(5rem, 9vw, 8.5rem)
        0;
    overflow: hidden;
    background-color: var(--color-section);
}

.custom-orders-page .custom-orders-request::before {
    content: "";
    position: absolute;
    top: -230px;
    left: -230px;
    z-index: -1;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(182, 106, 34, 0.07);
    border-radius: 50%;
}

.custom-orders-page .custom-orders-request-layout {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.72fr)
        minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 7rem);
    max-width: 1280px;
    margin-inline: auto;
}

.custom-orders-page .custom-orders-request-intro {
    position: relative;
}

.custom-orders-page
.custom-orders-request-intro
.custom-orders-eyebrow {
    margin-inline: 0;
    text-align: left;
}

.custom-orders-page
.custom-orders-request-intro > p:not(.custom-orders-eyebrow) {
    max-width: 48ch;
    margin-bottom: var(--space-xl);
    color: var(--color-text-light);
    font-size: 0.94rem;
    line-height: 1.8;
}

.custom-orders-page .custom-orders-request-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.custom-orders-page .custom-orders-request-note i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(182, 106, 34, 0.18);
    border-radius: 50%;
    color: var(--color-primary-dark);
}

.custom-orders-page .custom-orders-request-note h3 {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: var(--fw-bold);
}

.custom-orders-page .custom-orders-request-note p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.76rem;
    line-height: 1.58;
}

/* CUSTOM ORDER FORM */

.custom-orders-page .custom-orders-form {
    padding:
        clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(220, 201, 170, 0.82);
    border-radius: var(--radius-xl);
    background-color: rgba(252, 250, 246, 0.78);
    box-shadow:
        0 24px 70px rgba(75, 46, 30, 0.07);
}

.custom-orders-page .custom-orders-form-section {
    padding:
        0
        0
        var(--space-2xl);
    margin-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(220, 201, 170, 0.65);
}

.custom-orders-page .custom-orders-form-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.custom-orders-page .custom-orders-form-heading > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(182, 106, 34, 0.22);
    border-radius: 50%;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.custom-orders-page .custom-orders-form-heading h3 {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 600;
}

.custom-orders-page .custom-orders-form-heading p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.78rem;
    line-height: 1.55;
}

.custom-orders-page .custom-orders-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:
        var(--space-lg)
        var(--space-xl);
}

.custom-orders-page .custom-orders-field-full {
    grid-column: 1 / -1;
}

.custom-orders-page .custom-orders-field label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    line-height: 1.4;
}

.custom-orders-page .custom-orders-field label span {
    color: var(--color-primary-dark);
}

.custom-orders-page .custom-orders-field input,
.custom-orders-page .custom-orders-field select,
.custom-orders-page .custom-orders-field textarea {
    width: 100%;
    border: 1px solid rgba(182, 106, 34, 0.2);
    border-radius: var(--radius-md);
    background-color: var(--color-warm-white);
    color: var(--color-text);
    font: inherit;
    font-size: 0.88rem;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.custom-orders-page .custom-orders-field input,
.custom-orders-page .custom-orders-field select {
    min-height: 48px;
    padding:
        0
        var(--space-md);
}

.custom-orders-page .custom-orders-field textarea {
    min-height: 130px;
    padding: var(--space-md);
    resize: vertical;
}

.custom-orders-page .custom-orders-field input:focus,
.custom-orders-page .custom-orders-field select:focus,
.custom-orders-page .custom-orders-field textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow:
        0 0 0 4px rgba(182, 106, 34, 0.1);
}

.custom-orders-page .custom-orders-field.is-invalid input,
.custom-orders-page .custom-orders-field.is-invalid select,
.custom-orders-page .custom-orders-field.is-invalid textarea {
    border-color: #A34B3F;
}

.custom-orders-page .custom-orders-field-error {
    min-height: 1.2em;
    margin:
        0.35rem
        0
        0;
    color: #8D3F35;
    font-size: 0.68rem;
    line-height: 1.45;
}

/* FILE UPLOAD */

.custom-orders-page .custom-orders-upload {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    border: 1px dashed rgba(182, 106, 34, 0.4);
    border-radius: var(--radius-lg);
    background-color: rgba(232, 214, 184, 0.13);
}

.custom-orders-page .custom-orders-upload input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-orders-page .custom-orders-upload-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    min-height: 118px;
    padding: var(--space-lg);
    text-align: left;
}

.custom-orders-page .custom-orders-upload-content i {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
}

.custom-orders-page .custom-orders-upload-content strong,
.custom-orders-page .custom-orders-upload-content span {
    display: block;
}

.custom-orders-page .custom-orders-upload-content strong {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-size: 0.8rem;
}

.custom-orders-page .custom-orders-upload-content span {
    color: var(--color-text-light);
    font-size: 0.72rem;
}

.custom-orders-page .custom-orders-upload-status {
    min-height: 1.2em;
    margin:
        var(--space-sm)
        0
        0;
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    line-height: 1.45;
}

/* CONSENT AND SUBMIT */

.custom-orders-page .custom-orders-form-consent {
    margin-bottom: var(--space-lg);
}

.custom-orders-page .custom-orders-form-consent label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-text-light);
    font-size: 0.74rem;
    line-height: 1.55;
    cursor: pointer;
}

.custom-orders-page .custom-orders-form-consent input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
}

.custom-orders-page .custom-orders-submit {
    width: 100%;
    gap: 0.65rem;
}

.custom-orders-page .custom-orders-form-status {
    min-height: 1.4em;
    margin:
        var(--space-md)
        0
        0;
    color: var(--color-primary-dark);
    font-size: 0.76rem;
    line-height: 1.55;
    text-align: center;
}

.custom-orders-page .site-signature-difference {
	margin-top: 60px;
}

/* BEFORE YOU SEND */

.custom-orders-page .custom-orders-before-send {
    position: relative;
    max-width: 430px;
    margin-top: clamp(3rem, 5vw, 4.5rem);
    padding:
        clamp(2rem, 3vw, 2.75rem)
        0
        0
        clamp(1.5rem, 2.5vw, 2rem);
    border-left: 1px solid rgba(182, 106, 34, 0.28);
}

/* HEADING */

.custom-orders-page
.custom-orders-before-send-heading {
    margin-bottom: var(--space-xl);
}

.custom-orders-page
.custom-orders-before-send-eyebrow {
    margin:
        0
        0
        0.55rem;
    color: var(--color-primary-dark);
    font-size: 0.62rem;
    font-weight: var(--fw-bold);
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.custom-orders-page
.custom-orders-before-send-heading h3 {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.35rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* SMALL FLOURISH */

.custom-orders-page
.custom-orders-before-send-flourish {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 135px;
    margin-top: var(--space-md);
    color: var(--color-primary);
}

.custom-orders-page
.custom-orders-before-send-flourish span {
    flex: 1;
    height: 1px;
    background-color: rgba(182, 106, 34, 0.3);
}

.custom-orders-page
.custom-orders-before-send-flourish i {
    flex: 0 0 auto;
    font-size: 0.65rem;
}

/* NOTES LIST */

.custom-orders-page
.custom-orders-before-send-list {
    display: grid;
    gap: 0;
}

/* INDIVIDUAL NOTE */

.custom-orders-page
.custom-orders-before-send-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: var(--space-md);
    padding:
        var(--space-lg)
        0;
    border-top: 1px solid rgba(220, 201, 170, 0.65);
}

.custom-orders-page
.custom-orders-before-send-item:last-child {
    border-bottom: 1px solid rgba(220, 201, 170, 0.65);
}


/* NUMBER */

.custom-orders-page
.custom-orders-before-send-number {
    padding-top: 0.15rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

/* NOTE CONTENT */

.custom-orders-page
.custom-orders-before-send-item h4 {
    margin:
        0
        0
        0.35rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
}

.custom-orders-page
.custom-orders-before-send-item p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.74rem;
    line-height: 1.65;
}