/* =========================
   THE FORGE — BLACK & WHITE
   ========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    padding: 28px;
    font-family: Arial, Helvetica, sans-serif;
    color: #f4f4f4;

    background:
        radial-gradient(
            circle at top,
            rgba(255, 255, 255, 0.04),
            transparent 38%
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 5px
        ),
        #090909;
}

/* =========================
   STRUTTURA PRINCIPALE
   ========================= */

#upper,
#lower,
#summary {
    position: relative;
    margin-bottom: 35px;
    padding: 28px;

    background: transparent;
    border: 0;
    border-bottom: 2px solid #f0f0f0;
}

#upper {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

#upper::after,
#summary::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;

    width: 75px;
    height: 2px;

    background: #f0f0f0;
    transform: rotate(-35deg);
    transform-origin: right center;
}

#lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;

    border-bottom: 0;
}

#cartBackdrop {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);

    z-index: 999;
}

#cartOverlay {
    z-index: 1000;
}

/* =========================
   PRODOTTI
   ========================= */

.products {
    position: relative;
    padding: 22px 10px 28px;

    background: transparent;
    border: 0;
    border-top: 1px solid #777777;
    border-bottom: 1px solid #777777;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.products::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;

    width: 55px;
    height: 2px;

    background: #ffffff;
}

.products:hover {
    border-color: #ffffff;
    transform: translateY(-3px);
}

.products:hover::before {
    width: 100%;
    transition: width 0.3s ease;
}

.hosting {
    grid-column: 1 / 3;
}

/* =========================
   TITOLI
   ========================= */

h1,
h2,
h3 {
    margin-top: 0;

    color: #ffffff;

    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;

    text-shadow:
        2px 2px 0 #333333,
        0 0 12px rgba(255, 255, 255, 0.12);
}

h1 {
    font-size: clamp(34px, 6vw, 68px);
}

h2 {
    font-size: 24px;
}

h3 {
    padding-bottom: 15px;
    font-size: 28px;
    text-align: left;

    border-bottom: 2px solid #ffffff;
}

/* =========================
   TESTO
   ========================= */

p,
li,
label {
    line-height: 1.6;
}

.products label {
    display: inline-block;
    margin-bottom: 13px;

    color: #d6d6d6;
    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.products label:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* =========================
   RADIO
   ========================= */

input[type="radio"] {
    appearance: none;

    width: 17px;
    height: 17px;
    margin-right: 10px;

    vertical-align: middle;

    background: transparent;
    border: 2px solid #bcbcbc;
    border-radius: 0;

    cursor: pointer;
    transform: rotate(45deg);
}

input[type="radio"]:checked {
    background: #ffffff;
    border-color: #ffffff;

    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.65),
        0 0 18px rgba(255, 255, 255, 0.2);
}

/* =========================
   SELECT
   ========================= */

select {
    width: 100%;
    padding: 13px 14px;

    color: #ffffff;
    background: #0b0b0b;

    border: 0;
    border-bottom: 2px solid #ffffff;
    border-radius: 0;

    font-size: 16px;
    outline: none;
    cursor: pointer;
}

select:focus,
select:hover {
    background: #111111;

    box-shadow:
        0 5px 15px rgba(255, 255, 255, 0.08);
}

/* =========================
   RIEPILOGO
   ========================= */

#botSelection,
#siteSelection,
#hostSelection {
    color: #bcbcbc;
}

#total {
    margin-top: 25px;

    color: #ffffff;

    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.25);
}

/* =========================
   PULSANTI
   ========================= */

button,
#goToCart {
    position: relative;

    padding: 13px 26px;

    color: #ffffff;
    background: transparent;

    border: 2px solid #ffffff;
    border-radius: 0;

    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;

    cursor: pointer;
    overflow: hidden;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

button:hover,
#goToCart:hover {
    color: #050505;
    background: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 28px rgba(255, 255, 255, 0.12);
}

button:active,
#goToCart:active {
    transform: translateY(1px);
}

#goToCart {
    margin-top: 20px;
}

/* =========================
   BACKDROP
   ========================= */

#cartBackdrop {
    position: fixed;
    inset: 0;
    z-index: 999;

    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(5px);
}

#cartBackdrop[hidden] {
    display: none;
}

/* =========================
   CARRELLO
   ========================= */

#cartOverlay {
    position: fixed;
    top: 5%;
    left: 50%;
    z-index: 1000;

    transform: translateX(-50%);

    width: min(540px, calc(100% - 30px));
    max-height: 90vh;
    padding: 30px;

    overflow-y: auto;

    color: #f4f4f4;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 5px
        ),
        #090909;

    border: 2px solid #ffffff;

    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.22),
        0 0 45px rgba(255, 255, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.95);

    animation: openCart 0.22s ease-out;
}

#cartOverlay[hidden] {
    display: none;
}

@keyframes openCart {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#cartOverlay ul {
    margin: 0 0 25px;
    padding-left: 35px;
}

#cartOverlay li {
    margin-bottom: 10px;
}

#cartOverlay li::marker {
    color: #ffffff;
}

#cartOverlay hr {
    margin: 28px 0;

    border: 0;
    border-top: 2px solid #ffffff;

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.2);
}

#cartOverlay > p {
    color: #ffffff;

    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================
   TEXTAREA
   ========================= */

#cartOverlay label {
    color: #ffffff;

    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

textarea {
    width: calc(100% - 80px);
    min-height: 90px;
    padding: 13px;

    color: #ffffff;
    background: transparent;

    border: 1px solid #777777;
    border-bottom: 2px solid #ffffff;
    border-radius: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;

    outline: none;
    resize: vertical;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

textarea::placeholder {
    color: #777777;
}

textarea:focus {
    border-color: #ffffff;

    box-shadow:
        0 5px 16px rgba(255, 255, 255, 0.08);
}

/* =========================
   TESTO COPIABILE
   ========================= */

#cartOverlay > div {
    background: transparent !important;

    border: 0;
    border-top: 1px solid #777777;
    border-bottom: 1px solid #777777;

    color: #dddddd;
}

#cartOverlay > div::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;

    width: 70px;
    height: 2px;

    background: #ffffff;
}

#cartOverlay > div p {
    margin: 10px 0;
}

#cartOverlay > div button {
    width: 38px;
    height: 38px;
    padding: 0;

    color: #ffffff;
    background: #090909;

    border: 1px solid #ffffff;

    font-size: 16px;
}

#cartOverlay > div button:hover {
    color: #050505;
    background: #ffffff;
}

/* =========================
   INFO CONTACTS
   ========================= */

#info_contacts {
    margin-top: 40px;
    padding: 28px 0;

    color: #d7d7d7;
    background: transparent;

    border-bottom: 1px solid #ffffff;
}

#info_contacts::before {
    content: none;
}

#info_contacts h2,
#info_contacts h3 {
    margin-bottom: 20px;
    padding: 0;

    text-align: left;
    border: 0;
}

#info_contacts p {
    max-width: 750px;
    margin: 10px 0;

    color: #bdbdbd;
}

#info_contacts a {
    position: relative;

    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
}

#info_contacts a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;

    width: 0;
    height: 1px;

    background: #ffffff;

    transition: width 0.2s ease;
}

#info_contacts a:hover::after {
    width: 100%;
}

/* =========================
   SCROLLBAR
   ========================= */

#cartOverlay {
    scrollbar-width: thin;
    scrollbar-color: #ffffff #090909;
}

#cartOverlay::-webkit-scrollbar {
    width: 8px;
}

#cartOverlay::-webkit-scrollbar-track {
    background: #090909;
}

#cartOverlay::-webkit-scrollbar-thumb {
    background: #ffffff;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 700px) {
    body {
        padding: 14px;
    }

    #lower {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 10px 0;
    }

    .hosting {
        grid-column: auto;
    }

    #upper,
    #summary {
        padding-left: 10px;
        padding-right: 10px;
    }

    #cartOverlay {
        top: 3%;
        width: calc(100% - 20px);
        max-height: 94vh;
        padding: 20px;
    }

    #cartOverlay label,
    #cartOverlay textarea,
    #cartOverlay > p {
        margin-left: 0 !important;
    }

    textarea {
        width: 100%;
    }

    #cartOverlay > div {
        margin: 25px 0 !important;
    }

    h1 {
        letter-spacing: 3px;
    }

    h3 {
        font-size: 24px;
    }
}