/* =========================================================
   Codchem: CTA band, "Find a Branch" + "Valuable Feedback" popups
   (Astra styles buttons globally, so button rules use !important)
========================================================= */

html.cc-lock { overflow: hidden; }

.cc-modal[hidden],
.cc-branch[hidden],
.cc-branch__body[hidden],
.cc-success[hidden],
.cc-form[hidden],
.cc-empty[hidden],
.cc-form-error[hidden] { display: none !important; }


/* ---------- buttons ---------- */

.cc-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    border: 1.5px solid transparent !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.22, .75, .2, 1), box-shadow .3s, background .3s, color .3s;
}

.cc-btn:hover { transform: translateY(-2px); }

.cc-btn--primary {
    background: linear-gradient(120deg, #ec0872, #ff5fa2) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px -14px rgba(236, 8, 114, .9);
}
.cc-btn--primary:hover { color: #fff !important; box-shadow: 0 16px 30px -12px rgba(236, 8, 114, 1); }

.cc-btn--light { background: #fff !important; color: #0d1321 !important; }
.cc-btn--light:hover { color: #ec0872 !important; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }

.cc-btn--dark { background: #0d1321 !important; color: #fff !important; }
.cc-btn--dark:hover { color: #fff !important; box-shadow: 0 14px 30px -14px rgba(13, 19, 33, .8); }

.cc-btn--ghost {
    background: transparent !important;
    color: #0d1321 !important;
    border-color: rgba(13, 19, 33, .18) !important;
}
.cc-btn--ghost:hover { border-color: #ec0872 !important; color: #ec0872 !important; }

.cc-btn--block { width: 100%; }


/* ---------- CTA band above the footer ---------- */

.cc-cta-band { padding: 56px 24px; background: #fff8fc; }

.cc-cta-band__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cc-cta-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 32px;
    border-radius: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cc-cta-card--branch   { background: linear-gradient(125deg, #ec0872 0%, #ff5fa2 100%); }
.cc-cta-card--feedback { background: linear-gradient(125deg, #0d1321 0%, #2a1630 100%); }

.cc-cta-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
}

.cc-cta-card__text { flex: 1; min-width: 0; }
.cc-cta-card h3 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; color: #fff; font-weight: 800; }
.cc-cta-card p  { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.cc-cta-card .cc-btn { flex: none; }


/* ---------- header button ---------- */

.codchem-find {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    border: 1.5px solid rgba(13, 19, 33, .16) !important;
    background: transparent !important;
    color: #0d1321 !important;
    font: inherit;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .3s, color .3s;
}
.codchem-find:hover { border-color: #ec0872 !important; color: #ec0872 !important; }
.codchem-find svg { width: 16px; height: 16px; }


/* ---------- modal shell ---------- */

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .22s ease;
}
.cc-modal.is-open { opacity: 1; }

.cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 19, 33, .62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cc-modal__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px 36px 32px;
    border-radius: 26px;
    background: #fff;
    color: #0d1321;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
    transform: translateY(16px) scale(.985);
    transition: transform .3s cubic-bezier(.22, .75, .2, 1);
}
.cc-modal.is-open .cc-modal__panel { transform: none; }

.cc-modal__close {
    position: absolute !important;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(13, 19, 33, .06) !important;
    color: #0d1321 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer;
}
.cc-modal__close:hover { background: rgba(236, 8, 114, .12) !important; color: #ec0872 !important; }

.cc-eyebrow {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #ec0872;
}
.cc-modal h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.1; font-weight: 800; color: #0d1321; }
.cc-lead { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: rgba(13, 19, 33, .68); }


/* ---------- branch list ---------- */

.cc-search input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(13, 19, 33, .14);
    border-radius: 14px;
    font: inherit;
    font-size: 14.5px;
    background: #fff;
}
.cc-search input:focus { outline: none; border-color: #ec0872; box-shadow: 0 0 0 4px rgba(236, 8, 114, .12); }

.cc-branch-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }

.cc-branch {
    margin: 0;
    border: 1.5px solid rgba(13, 19, 33, .09);
    border-radius: 18px;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
}
.cc-branch.is-open { border-color: rgba(236, 8, 114, .45); box-shadow: 0 16px 34px -22px rgba(236, 8, 114, .6); }

.cc-branch__head {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.cc-branch__pin {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(236, 8, 114, .1);
    color: #ec0872;
}

.cc-branch__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cc-branch__name { font-size: 16px; font-weight: 700; color: #0d1321; }
.cc-branch__addr { font-size: 13.5px; color: rgba(13, 19, 33, .62); line-height: 1.4; }

.cc-branch__chev {
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid #0d1321;
    border-bottom: 2px solid #0d1321;
    transform: rotate(45deg);
    transition: transform .3s;
}
.cc-branch.is-open .cc-branch__chev { transform: rotate(225deg); }

.cc-branch__body { padding: 0 18px 18px 74px; }
.cc-branch__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-branch__actions .cc-btn { padding: 10px 16px !important; font-size: 13px !important; }

.cc-empty { margin: 16px 0 0; font-size: 14px; color: rgba(13, 19, 33, .7); }
.cc-empty a { color: #ec0872; font-weight: 600; }


/* ---------- feedback form ---------- */

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

.cc-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cc-field label,
.cc-field legend { font-size: 13px; font-weight: 700; color: #0d1321; padding: 0; }

.cc-field input[type="text"],
.cc-field input[type="tel"],
.cc-field input[type="email"],
.cc-field input[type="date"],
.cc-field select,
.cc-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(13, 19, 33, .14);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 14.5px;
    color: #0d1321;
}
.cc-field input:focus,
.cc-field select:focus,
.cc-field textarea:focus { outline: none; border-color: #ec0872; box-shadow: 0 0 0 4px rgba(236, 8, 114, .12); }

.cc-hint { margin: -6px 0 0; font-size: 12.5px; color: rgba(13, 19, 33, .55); }

.cc-rating__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cc-rate { position: relative; cursor: pointer; }
.cc-rate input { position: absolute; opacity: 0; inset: 0; }
.cc-rate__box {
    display: grid;
    gap: 1px;
    justify-items: center;
    padding: 10px 4px;
    border: 1.5px solid rgba(13, 19, 33, .14);
    border-radius: 12px;
    transition: border-color .2s, background .2s, color .2s;
}
.cc-rate__box b { font-size: 18px; line-height: 1.2; }
.cc-rate__box small { font-size: 11px; color: rgba(13, 19, 33, .6); }
.cc-rate input:checked + .cc-rate__box { background: #ec0872; border-color: #ec0872; color: #fff; }
.cc-rate input:checked + .cc-rate__box small { color: rgba(255, 255, 255, .9); }
.cc-rate input:focus-visible + .cc-rate__box { box-shadow: 0 0 0 4px rgba(236, 8, 114, .25); }

.cc-form-error {
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: #fff1f4;
    color: #b0103f;
    font-size: 13.5px;
    font-weight: 600;
}

.cc-success { text-align: center; padding: 18px 0 6px; }
.cc-success__tick {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(120deg, #ec0872, #ff5fa2);
    color: #fff;
    font-size: 30px;
}
.cc-success h3 { margin: 0 0 6px; font-size: 24px; color: #0d1321; }
.cc-success p { margin: 0 0 18px; color: rgba(13, 19, 33, .68); }


/* ---------- responsive ---------- */

@media (max-width: 860px) {
    .cc-cta-band__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .cc-cta-band { padding: 40px 16px; }
    .cc-cta-card { flex-wrap: wrap; padding: 24px 22px; }
    .cc-cta-card .cc-btn { width: 100%; }
    .cc-modal { padding: 10px; align-items: flex-end; }
    .cc-modal__panel { padding: 28px 20px 24px; border-radius: 22px; max-height: calc(100vh - 20px); }
    .cc-modal h2 { font-size: 25px; }
    .cc-grid { grid-template-columns: 1fr; }
    .cc-branch__body { padding-left: 18px; }
    .cc-rating__row { gap: 5px; }
    .cc-rate__box small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-modal, .cc-modal__panel, .cc-btn { transition: none; }
}
