/* ===================================
   Ecooza — Quote enquiry
   Shared by the standalone /enquire/ page and the catalogue modal, so every
   rule here must work in both contexts.
   =================================== */

/* --- Product summary --------------------------------------------------- */

.enq-product {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    background: linear-gradient(120deg, #f5f8ec, #eef4dc);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.1rem;
}

.enq-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 9px;
    flex: none;
    background: #fff;
}

.enq-product__text { min-width: 0; }

.enq-product__cat {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.enq-product__name {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0.15rem 0 0.3rem;
    color: var(--color-text-primary);
}

.enq-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.76rem;
    color: #667058;
}

.enq-product__meta b { color: var(--color-text-primary); font-variant-numeric: tabular-nums; }

.enq-intro {
    margin: 0 0 1.1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #5f6b52;
}

/* --- Fields ------------------------------------------------------------ */

.enq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.85rem;
}

@media (max-width: 560px) {
    .enq-row { grid-template-columns: 1fr; }
}

.enq-field { margin-bottom: 0.85rem; min-width: 0; }

.enq-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
    color: #4c5443;
}

.enq-modal .form-control,
.enq-page .form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #dfe3d4;
    border-radius: 9px;
    background: #fbfcf8;
    font: inherit;
    font-size: 0.88rem;
    color: var(--color-text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.enq-modal .form-control:focus,
.enq-page .form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(144, 173, 68, 0.15);
}

.enq-modal textarea.form-control,
.enq-page textarea.form-control { resize: vertical; min-height: 92px; }

.enq-sample {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #f1f6e4;
    border: 1px solid #e2ead0;
    border-radius: 9px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #4c5443;
    cursor: pointer;
}

.enq-sample input { accent-color: var(--color-primary); width: 16px; height: 16px; margin: 0; }

.errorlist {
    color: #b3362c;
    font-size: 0.78rem;
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
}

/* --- Submit ------------------------------------------------------------ */

.enq-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.2rem;
    border: 0;
    border-radius: 10px;
    background: var(--color-text-primary);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
}

.enq-submit:hover { background: var(--color-primary-dark); }
.enq-submit:active { transform: translateY(1px); }
.enq-submit:disabled { opacity: 0.65; cursor: progress; }
.enq-submit i { font-size: 0.78rem; }

.enq-note {
    font-size: 0.78rem;
    color: #7d8471;
    margin: 0.8rem 0 0;
    text-align: center;
}

/* --- Modal ------------------------------------------------------------- */

body.enq-modal-open { overflow: hidden; }

.enq-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.enq-modal[hidden] { display: none; }

.enq-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(22, 26, 16, 0.5);
    backdrop-filter: blur(2px);
    animation: enq-fade 0.18s ease;
}

.enq-modal__panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(88vh, 780px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(20, 24, 14, 0.28);
    overflow: hidden;
    animation: enq-rise 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes enq-fade { from { opacity: 0; } }
@keyframes enq-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

@media (prefers-reduced-motion: reduce) {
    .enq-modal__scrim, .enq-modal__panel { animation: none; }
}

.enq-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #eceee4;
    flex: none;
}

.enq-modal__bar h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0;
    color: var(--color-text-primary);
}

.enq-modal__close {
    border: 0;
    background: none;
    font-size: 1.05rem;
    color: #7d8471;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.enq-modal__close:hover { background: #f2f4ea; color: var(--color-text-primary); }

.enq-modal__body {
    padding: 1.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d5dcc3 transparent;
}

.enq-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 0;
    color: #b6bda8;
    font-size: 1.4rem;
}

.enq-done { text-align: center; padding: 1.5rem 0.5rem 0.5rem; }
.enq-done i { font-size: 2.4rem; color: var(--color-primary); }
.enq-done h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0.8rem 0 0.5rem;
    color: var(--color-text-primary);
}
.enq-done p { color: #5f6b52; font-size: 0.9rem; line-height: 1.6; margin: 0 auto 1.4rem; max-width: 42ch; }
.enq-done .enq-submit { width: auto; padding-inline: 1.6rem; }

@media (max-width: 560px) {
    .enq-modal { padding: 0; align-items: flex-end; }
    .enq-modal__panel { max-height: 92vh; border-radius: 16px 16px 0 0; width: 100%; }
}

/* --- Standalone page --------------------------------------------------- */

.enq-page { max-width: 640px; margin: 0 auto; padding: 2rem 0 3rem; }

.enq-page__crumb { font-size: 0.8rem; color: #7d8471; margin-bottom: 0.9rem; }
.enq-page__crumb a { color: var(--color-primary-dark); }
.enq-page__crumb a:hover { text-decoration: underline; }

.enq-page__card {
    background: #fff;
    border: 1px solid #e8eade;
    border-radius: 14px;
    padding: 1.4rem;
}
