@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Orbitron:wght@400;700&family=Questrial&family=Roboto:wght@400;700&display=swap');

:root {
    --font-main: 'Lora', serif;
    --font-second: 'Orbitron', sans-serif;
    --font-third: 'Questrial', sans-serif;
    --font-fourth: 'Roboto', sans-serif;

    --color-background: #fff;
    --color-text: #222222;
    --color-whitetext: #fff;
    --color-button: #e82d88;
    --color-warningtext: #e82d88;
    --color-button-hover: #c22a6f;
    --color-submit-button: #e82d88;
    --color-summary: #55bdbc;
    --color-submit-button-hover: #c22a6f;
    --color-track: #e82d88;
    --color-thumb: #e82d88;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-box-shadow: #99907e;
    --color-checkbox-checked: green;
    --color-borders: #55bdbc;
    --color-fade: #55bdbc;
    --color-link: #e82d88;

}

body {
    font-family: var(--font-fourth);
    background: linear-gradient(to bottom, var(--color-fade), var(--color-background) 200px);
    color: var(--color-text);
    margin: 20px;
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

body::-webkit-scrollbar {
    display: none;
}



a {
    color: var(--color-link);
    text-decoration: none; /* Optional: Remove underline */
}

a:hover {
    color: var(--color-button-hover); /* Optional: Change color on hover */
    text-decoration: underline; /* Optional: Add underline on hover */
}


.container {
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

form .debug-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Adjust as needed */
}

form .debug-info {
    width: 80%; /* Adjust as needed */
    background-color: black;
    border: 1px solid #ccc;
    padding: 10px;
    color: white;
    box-sizing: border-box;
}

.option-group {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 16px; /* Ensure consistent bottom margin */
    vertical-align: top;
    width: 100%;
    text-align: center;
}


.option-group select {
    width: 85%; /* or set to a fixed width like 300px */
    max-width: 100%;
    box-sizing: border-box;
}

form select {
    width: 85%; /* Set the desired width */
    max-width: 85%;
    box-sizing: border-box;
}

.intro-paragraph {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;

}


.option-label {
    display: block;
    margin-top: 20px;
    font-family: var(--font-fourth);
    color: var(--color-text);
    font-size: 1.2em;
    text-align: center;
}

.section label {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-fourth);
    color: var(--color-text);
    font-size: 1.2em;
    text-align: center; /* Center align the label text */
}


label {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-fourth);
    color: var(--color-text);
    font-size: 1.2em;
}

select, input {
    width: 100%;
    padding: 6px;
    margin-bottom: 5px;
    border-radius: 10px;
    font-size: 1.23em;
    font-family: var(--font-fourth);
    box-sizing: border-box;
    color: var(--color-black);
    background-color: var(--color-white);
    border: 2px solid var(--color-borders); /* Add this line for border */
}

select:focus, select:hover {
    border: 2px solid var(--color-borders); /* Ensure the border color remains on focus/hover */
}

textarea {
    width: 100%;
    height: 100px;
    padding: 6px;
    margin: 6px 0;
    box-sizing: border-box;
    color: var(--color-black);
    font-size: 0.96em;
    font-family: var(--font-fourth);
    resize: vertical;
}

.total-price, .error-message {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    width: 100%;
}

.debug-info {
    white-space: pre-wrap;
    background-color: black;
    border: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
}

.debug-info dt {
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.debug-info dd {
    margin: 0 0 5px 0;
    padding: 0;
}

.debug-column {
    width: 33%;
    box-sizing: border-box;
    padding: 5px;
}

.additional-records-container {
    margin-top: 10px;
    width: 100%;
}

.record-set {
    border: 5px solid var(--color-borders);
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 24px;
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}


#inscription-text {
    display: inline-block; /* Change from none to inline-block to display it */
    margin: 0 auto;
    text-align: left; /* Center the text inside the input field */
    width: 85%;
}

.loader {
    border: 16px solid #55bdbc;
    border-top: 16px solid #e82d88;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1, .section h2, .summary-info h2, .price-info h2 {
    color: var(--color-text);
    font-size: 1.94em;
    font-family: var(--font-second);
    text-align: center;
}

.section-header {
    color: var(--color-text);
    font-size: 1.94em;
    font-family: var(--font-second);
    margin-bottom: 16px;
    text-align: center;
}


input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    border-radius: 10px;
    padding: 6px;
    margin: 6px 0;
    box-sizing: border-box;
    font-size: 1.23em;
    font-family: var(--font-fourth);
    color: var(--color-black);
    background-color: var(--color-white);
    width: 90%;
    max-width: 90%;
}

select {
    border-radius: 10px;
    padding: 6px;
    margin: 6px 0;
    box-sizing: border-box;
    font-size: 1.23em;
    font-family: var(--font-fourth);
    color: var(--color-text);
    background-color: var(--color-background);
    width: 100%; 
    max-width: 100%; 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml;utf8,<svg fill='%23fff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5-5z'/></svg>") no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.price-info select {
    border-radius: 10px;
    padding: 6px;
    margin: 6px 0;
    box-sizing: border-box;
    font-size: 1.23em;
    font-family: var(--font-fourth);
    color: var(--color-text);
    background-color: var (--color-background);
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml;utf8,<svg fill='%23fff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5-5z'/></svg>") no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.price-info select:not(:focus):not(:hover) {
    background-color: var(--color-background);
}


select:focus, select:hover {
    border: 2px solid var(--color-borders);
}

select option {
    background-color: var(--color-background);
    color: var(--color-text);
}

select::-webkit-scrollbar {
    width: 8px;
    background-color: var(--color-background);
}

select::-webkit-scrollbar-thumb {
    background-color: var(--color-borders);
}

select option:checked {
    background-color: var(--color-borders);
    color: var(--color-white);
}

button {
    background-color: var(--color-button);
    color: var(--color-whitetext);
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
}

button:hover {
    background-color: var(--color-button-hover);
}



button[type="submit"] {
    background-color: var(--color-submit-button);
    color: var(--color-whitetext);
    padding: 12px 24px;
    font-size: 1.4em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: var(--color-submit-button-hover);
}

.record-label {
    font-weight: bold;
    font-size: 1.2em;
    font-family: var(--color-text);
}

#earliestDeliveryMessage {
    color: red;
    margin-top: 10px;
}


form {
    max-width: 600px;
    margin: 12px;
}

#orderForm {
    text-align: center;
}

.horizontal-checkboxes {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjust the gap as needed */
    margin-top: 10px;
}

.horizontal-checkboxes label {
    display: flex;
    align-items: center;
}

button[type="submit"] {
    background-color: var(--color-submit-button);
    color: var(--color-whitetext);
    padding: 12px 24px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: var(--color-submit-button-hover);
}

.summary-info {
    position: fixed;
    top: 12px;
    left: 12px;
    max-width: 280px;
    min-width: 260px;
    padding: 10px;
    background-color: var(--color-summary);
    border-radius: 9.6px;
    font-size: 0.96em;
    overflow: visible; /* Ensure container grows with content */
    max-height: none; /* Remove any height constraints */
}


.summary-info p {
    font-size: 1.2em; /* Increased font size for summary items */
    margin: 20px 0; /* Added margin for better spacing */
    color: var(--color-text);
    font-family: var(--font-fourth);
}


.terms-text label {
    font-size: 0.9em; /* Adjust the size to make it smaller */
}



.price-info {
    position: fixed;
    top: 12px;
    right: 12px;
    max-width: 280px;
    min-width: 260px;
    padding: 12px;
    background-color: var(--color-summary);
    border-radius: 9.6px;
    font-size: 0.96em;
    color: var(--color-text);
    font-size: 1.2em;
    font-family: var(--font-fourth);
}

.price-divider {
    margin-bottom: 50px;
}


.quantity-container {
    position: fixed;
    top: 700px;
    right: 12px;
    min-width: 220px;
    padding: 12px;
    background-color: var(--color-submit-button);
    border-radius: 9.6px;
    font-size: 0.96em;
    color: var(--color-text);
}

.slider {
    width: 100%;
    margin: 6px 0;
}

.color-quantity-pair {
    border: 2.4px solid var(--color-white);
    border-radius: 18px;
    padding: 6px;
    margin: 6px 0;
    font-size: 0.96em;
    position: relative;
}

#addColorQuantityPairButton, .remove-button {
    border: 2.4px solid var(--color-white);
    border-radius: 18px;
    padding: 6px;
    background-color: transparent;
    color: var(--color-white);
    font-size: 0.96em;
}

.remove-button {
    display: inline;
    position: absolute;
    top: 10px;
    right: 10px;
}

.customer-type label {
    display: inline-block;
    margin-right: 20px;
}


input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-button);
    border-radius: 4px;
    background-color: var(--color-background);
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 8px; 
}

input[type="checkbox"]:checked {
    background-color: var(--color-button);
}

input[type="checkbox"]::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M20.285 4.281l-11.086 11.293-4.485-4.485-1.414 1.414 5.899 5.899 12.5-12.793z'/%3E%3C/svg%3E");
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

input[type="checkbox"]:checked::after {
    display: block;
}


label {
    display: flex;
    align-items: center;
}


/* Success Overlay Styles */
#successOverlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Slightly darker overlay */
    z-index: 10000; /* Ensure it's above all other elements */
    justify-content: center;
    align-items: center;
}

#successMessage {
    color: var(--color-whitetext);
    font-family: var(--font-fourth);
    text-align: center;
    max-width: 600px;
    margin: auto;
}

#successMessage p {
    font-size: 1.8em;
    margin-bottom: 20px;
}

#successMessage button {
    background-color: var(--color-button);
    color: var(--color-whitetext);
    padding: 12px 24px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    margin-top: 20px;
    font-family: var(--font-fourth);
}

#successMessage button:hover {
    background-color: var(--color-button-hover);
}



.section {
    border: 5px solid var(--color-borders);
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 24px;
}

.section p {
    color: var(--color-text);
    font-size: 1.23em;
    font-family: var(--font-fourth);
}

.spacer {
    height: 24px;
}

.fullscreen-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    color: var(--color-text);
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-fourth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hidden {
    display: none;
}

.common-container {
    margin-top: 20px;
    text-align: center;
}

.common-container p,
.common-container select {
    margin-top: 10px;
}

.fullscreen-section .content {
    text-align: left;
    width: 90%;
    max-width: 600px;
    margin: auto;
    flex-grow: 1;
    font-size: 1.2em;
}

.fullscreen-section.hidden {
    display: none;
}

.fullscreen-section.visible {
    display: block;
}

.hidden {
    display: none;
}

button.close-button {
    background-color: var(--color-button);
    color: var(--color-text);
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    font-size: 1.96em;
    font-family: var(--font-second);
    border-radius: 4px;
    margin-top: 20px;
    align-self: center;
}

button.close-button:hover {
    background-color: var(--color-button-hover);
}


.slider-info {
    position: fixed;
    top: 480px; /* Adjust the top position as needed */
    right: 12px;
    max-width: 280px;
    min-width: 260px;
    padding: 12px;
    background-color: var(--color-submit-button);
    border-radius: 9.6px;
    font-size: 0.96em;
    color: var(--color-text);
    font-family: var(--font-fourth);
}

.slider-group {
    margin-top: 10px;
}

#quantity-slider {
    width: 100%;
}

@media (max-width: 1149px) {
    .slider-info {
        display: none;
    }
}


/* Hide the toggle text on larger screens */
@media (min-width: 1150px) {
    .toggle-text {
        display: none;
    }

    .summary-info,
    .price-info {
        display: block;
    }

    .mobile-summary-toggle,
    .mobile-price-toggle {
        display: none;
    }
}



/* Show the toggle text and buttons on smaller screens */
@media (max-width: 1149px) {
    .summary-info,
    .price-info {
        display: none;
    }

    .mobile-summary-toggle,
    .mobile-price-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        width: 50%;
        height: 70px;
        background-color: var(--color-summary);
        cursor: pointer;
    }

    .mobile-summary-toggle {
        left: 0;
        font-family: var(--font-fourth);
    }

    .mobile-price-toggle {
        right: 0;
        font-family: var(--font-fourth);
    }

    .mobile-summary-toggle p,
    .mobile-price-toggle p {
        margin: 5px 0;
        font-size: 1.2em;
        font-family: var(--font-fourth);
        font-weight: bold;
    }

    .show-mobile {
        display: block !important;
    }
}

