
/* ========================================
   PRICING PAGE
======================================== */

.pricing-page {
    width: var(--content-width);
    max-width: var(--content-max-width);
    margin-inline: auto;
}

/* ========================================
   PRICING SECTION
======================================== */

.pricing {
    position: relative;
    margin: 0;
    padding-top: 10rem;
    padding-bottom: 0;
}

/* Heading and eyebrow */

.pricing__heading {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing__heading .eyebrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Pricing title image */

.pricing__title {
    position: relative;
    z-index: 0;
    width: 100%;
    margin: 0;
    line-height: 0;
}

.pricing__title-image {
    display: block;
    width: min(100%, 44rem);
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

/* Cards overlap the lower part of the title image */

.pricing__content {
    position: relative;
    z-index: 1;
    margin-top: -4.5rem;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.75rem;
}

.pricing__grid[hidden] {
    display: none !important;
}

/* ========================================
   PRICING CARDS
======================================== */

.pricing__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    min-height: 13rem;
    padding: 3rem 2.5rem 3rem 2.5rem;
    box-sizing: border-box;
    border-radius: 1rem;
    background: transparent;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Card background and silver gradient border */
.pricing__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    opacity: .65;
    background:
        linear-gradient(
            145deg,
            rgba(10, 10, 10, 80%) 0%,
            rgb(0 0 0 / 100%) 100%
        ) padding-box,
        linear-gradient(
            135deg,
            #888888 0%,
            #696969 12%,
            #3c3c3c 32%,
            #292929 55%,
            #363636 78%,
            #202020 100%
        ) border-box;
}

.pricing__card > * {
    position: relative;
    z-index: 1;
}

.pricing__card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 1rem;
    margin-bottom: 1.25rem;
}

.pricing__card-heading {
    min-width: 0;
}

.pricing__service-title {
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-weight: 550 !important;
    font-size: 2rem !important;
}

.pricing__service-description {
    margin-top: -.15rem !important;
}

.pricing__starting-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.pricing__from {
    margin: 0 !important;
    line-height: 1.1;
}

.pricing__price {
    margin: .5rem 0 0 0 !important;
    color: #ffffff;
    font-family: "Anek", sans-serif;
    font-size: 2.5rem !important;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* Individual services */

.pricing__service-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing__service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1.5px solid #373737;
}

.pricing__service-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pricing__service-name {
    min-width: 0;
    margin: 0 !important;
    font-weight: 400;
    font-size: 1.05rem !important;
    line-height: 1.5;
    letter-spacing: .035rem;
    overflow-wrap: anywhere;
    -webkit-text-stroke: 2px solid white;
}

.pricing__service-price {
    margin: 0 !important;
    font-size: 1.05rem;
    font-weight: 300 !important;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

/* Loading and status messages */

.pricing__loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    box-sizing: border-box;
    background: #000000;
    text-align: center;
}
.pricing__loading .project-loading__spinner {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 3px solid #363636;
    border-top-color: #FF5900;
    border-radius: 50%;
    animation: project-loading-spin 0.8s linear infinite;
}

.pricing__loading .project-loading__text {
    margin: 0;
    color: #FFFFFF;
    text-align: center;
}

.pricing__status {
    margin: 1.5rem auto 0 !important;
    text-align: center;
}

.pricing__loading,
.pricing__status {
    color: #FFFFFF;
}

.pricing__loading[hidden],
.pricing__status[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .pricing__loading .project-loading__spinner {
        animation-duration: 2s;
    }
}

@keyframes project-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   REQUEST A QUOTE
======================================== */

.quote {
    padding-top: 8rem;
    padding-bottom: 8.5rem;
}

.quote__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.quote__title {
    text-align: center;
}

.quote__intro {
    width: 100%;
    max-width: 55rem;
    text-align: center;
}

.quote__intro strong {
    font-weight: 600;
}

/* FORM CARD */

.quote__form {
    width: 100%;
    max-width: 66rem;
    margin-inline: auto;
    padding: 2.5rem;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 1.5rem;

    background:
        linear-gradient(
            145deg,
            rgb(17 17 17 / 94%) 0%,
            rgb(0 0 0 / 96%) 100%
        ) padding-box,
        linear-gradient(
            135deg,
            #888 0%,
            #696969 12%,
            #3c3c3c 32%,
            #292929 55%,
            #363636 78%,
            #202020 100%
        ) border-box;
}

.quote__form-title {
    margin: 0;
    margin-bottom: 1.5rem !important;
    color: #fff;
}

/* TWO-COLUMN FORM LAYOUT */

.quote__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.quote__column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.quote__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

/* LABELS */

.quote__label {
    display: block;
    margin: 0 !important;
    color: #fff;
}

.quote__label span {
    color: #FF5900;
}

/* INPUTS AND DROPDOWNS */
.quote__input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 3.5rem;
    min-height: 3.5rem;
    margin: 0 !important;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    outline: none;
    background: linear-gradient(
        110deg,
        rgba(225, 225, 225, 0.12) 0%,
        rgba(225, 225, 225, 0.12) 100%
    );
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    letter-spacing: 0.025rem;
    line-height: 1.5;
    backdrop-filter: blur(0.875rem);
    box-shadow:
        inset 0 0.0625rem 0 rgba(255, 255, 255, 0.12),
        inset 0 -0.0625rem 0 rgba(255, 255, 255, 0.025);
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.quote__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.quote__input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.25);
}

.quote__input:focus {
    background: linear-gradient(
        110deg,
        rgba(225, 225, 225, 0.12) 0%,
        rgba(225, 225, 225, 0.12) 100%
    );

    border-color: rgba(255, 125, 70, 0.42);

    box-shadow:
        inset 0 0.0625rem 0 rgba(255, 255, 255, 0.14),
        inset 0 -0.0625rem 0 rgba(255, 255, 255, 0.025);
}

.quote__input option {
    background: #101010;
    color: #fff;
}

.quote__field select.quote__input:invalid {
    color: rgba(255, 255, 255, 0.45);
}

.quote__field select.quote__input option {
    color: #fff;
}

.quote__field select.quote__input:valid {
    color: #fff;
}

.quote__field {
    position: relative;
}

.quote__field select.quote__input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
}

.quote__field:has(select.quote__input)::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    bottom: 1.35rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Preserve native dropdown behavior */
.quote__field select.quote__input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
}

/* FORM STATUS */

.quote__status {
    margin: 1.25rem 0 0 !important;
    text-align: center;
}

.quote__status[data-state="success"] {
    color: #A5E6B0;
}

.quote__status[data-state="error"] {
    color: #FF9B9B;
}


/* CUSTOM QUOTE DROPDOWNS */

.quote__custom-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Keep the native select available for form data. */
.quote__native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Closed dropdown */
.quote__select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    outline: none;
    background: linear-gradient(
        110deg,
        rgba(225, 225, 225, 0.12) 0%,
        rgba(225, 225, 225, 0.12) 100%
    );
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    letter-spacing: 0.025rem;
    line-height: 1.5;
    backdrop-filter: blur(0.875rem);
    box-shadow:
        inset 0 0.0625rem 0 rgba(255, 255, 255, 0.12),
        inset 0 -0.0625rem 0 rgba(255, 255, 255, 0.025);
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    cursor: pointer;
}

.quote__select-trigger:hover,
.quote__select-trigger[aria-expanded="true"] {
    background: #202020;
    border-color: #505050;
}

.quote__select-trigger:focus-visible {
    outline: 2px solid #FF7D46;
    outline-offset: 3px;
}

.quote__select-trigger > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Simple CSS chevron, not an icon */
.quote__select-trigger::after {
    content: "";
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    margin: -0.2rem 0 0;
    border-right: 1.5px solid #FFFFFF;
    border-bottom: 1.5px solid #FFFFFF;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.quote__select-trigger[aria-expanded="true"]::after {
    margin-top: 0.2rem;
    transform: rotate(225deg);
}

/* Floating menu */
.quote__select-menu.projects__filter-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 0.15rem;

    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.45rem;
    box-sizing: border-box;

    background: rgba(19, 19, 19, 0.96);
    border: 1px solid #292929;
    border-radius: 0.4rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.quote__select-menu[hidden] {
    display: none;
}

/* Individual options */
.quote__select-menu .projects__filter-option {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    padding: 0.55rem 0.65rem;
    box-sizing: border-box;
    color: #D8D8D8;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.quote__select-menu .projects__filter-option:hover,
.quote__select-menu .projects__filter-option:focus-visible {
    color: #FFFFFF;
    background: #262626;
    outline: none;
}

.quote__select-menu .projects__filter-option.is-selected {
    color: #FFFFFF;
    background: #252525;
    border-color: #414141;
}

.quote__select-trigger.is-placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* ========================================
   INVISIBLE HORIZONTAL SCROLLING
======================================== */

/* Hide scrollbars without disabling scrolling */
.quote__input {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quote__input::-webkit-scrollbar {
    display: none;
}

/* Single-line text inputs */
.quote__input[type="text"],
.quote__input[type="email"],
.quote__input[type="url"] {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

/* Single-line textareas */
.quote__textarea {
    height: 3.5rem;
    min-height: 3.5rem;
    max-height: 3.5rem;
    resize: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    overflow-wrap: normal;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quote__textarea::-webkit-scrollbar {
    display: none;
}

/* Keep dropdowns native and functional */
.quote__field select.quote__input {
    overflow: hidden;
    text-overflow: clip;
}

/* SUBMIT BUTTON */

.quote__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.quote__submit {
    min-height: 2.5rem;
    margin-top: 0.25rem !important;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem !important;
    cursor: pointer;
}

.quote__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* ========================================
   TABLET
   768px - 1023px
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    /* Pricing */

    .pricing {
        padding-top: 8.5rem;
    }

    .pricing__title-image {
        max-width: 34rem;
    }

    .pricing__content {
        margin-top: -3.5rem;
    }

    .pricing__service-price,
    .pricing__service-name {
        font-size: 1rem !important;
    }

    .pricing__grid {
        gap: 1.45rem;
    }

    .pricing__card {
        min-height: 12rem;
    }

    .pricing__card-header {
        column-gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .pricing__price {
        font-size: 2rem !important;
    }

    .pricing__service-row {
        gap: 0.5rem;
    }

    /* Quote */

    .quote {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }

    .quote__form {
        padding: 2rem;
    }

    .quote__fields {
        gap: 1.5rem;
    }

    .quote__select-trigger {
        max-width: 100%;
    }
}

/* ========================================
   MOBILE
   BELOW 768px
======================================== */

@media (max-width: 767px) {

    /* Pricing */

    .pricing {
        padding-top: 8.5rem;
    }

    .pricing__title-image {
        width: 100%;
    }

    .pricing__service-price,
    .pricing__service-name {
        font-size: .975rem !important;
    }

    .pricing__content {
        margin-top: -2.5rem;
    }

    .pricing__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .pricing__service-description {
        margin-top: -.1rem !important;
    }

    .pricing__card {
        min-height: 0;
        padding: 2.5rem 1.5rem 2.5rem 1.5rem;
        border-radius: 1rem;
    }

    .pricing__card-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 1rem;
    }

    .pricing__starting-price {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: .5rem;
        padding-top: 0;
    }

    .pricing__card-heading {
        order: 2;
        min-width: 0;
    }

    .pricing__price {
        margin: 0.5rem 0 0 0 !important;
        font-size: 2rem !important;
    }

    .pricing__from {
        margin: 0 !important;
        line-height: 1.1;
    }

    .pricing__service-row {
        gap: 0.65rem;
        padding: 0.65rem 0;
    }

    .pricing__service-name,
    .pricing__service-price {
        font-size: .9rem !important;
    }

    /* Quote */

    .quote__form .quote__input.body-text {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .quote__select-trigger {
        max-width: 100%;
    }

    .quote {
        padding-top: 5rem;
        padding-bottom: 5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .quote__form {
        display: block;
        width: 100%;
        max-width: 66rem;
        margin: 0 auto;
        padding: 1.5rem;
        box-sizing: border-box;
        border-radius: 1rem;
    }

    .quote__heading {
        margin-bottom: 2rem;
    }

    .quote__form-title {
        margin-top: .5rem !important;
        margin-bottom: 1rem !important;
    }

    .quote__fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .quote__column {
        gap: 0.75rem;
    }

    .quote__field:has(select.quote__input)::after {
        right: 1.35rem;
        bottom: 1.55rem;
    }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    .pricing *,
    .quote * {
        scroll-behavior: auto;
    }
}
