/* Common contact section styles */
.contact-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 30px !important;
}

.item-content:has(.contact-section) {
    z-index: 90;
    position: relative;
    background-color: #e9e9e9;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.contact-section h2 {
    font-size: 1.86rem;
}

.contact-section h3 {
    margin: 20px 0 10px 0;
    font-size: 1.29rem;
}

.contact-section .contact-info h3 {
    margin: 0 0 10px 0;
}

.contact-section .contact-info h3:not(:first-of-type) {
    margin: 40px 0 10px 0;
}

.contact-section .contact-info {
    background-color: #e5e3db;
    padding: 30px;
    border-radius: 10px;
}

.contact-section .contact-info a {
    color: grey !important;
}

.contact-section .contact-info a:hover {
    color: lightgrey !important;
}

@media (max-width: 639px) {
    .contact-section #mod-custom115 a {
        font-size: 0;
    }

    .contact-section #mod-custom115 a::after {
        content: "Email Us"; 
        font-size: 1rem;
        color: grey;
    }
}

.contact-section .our-location-map {
    border-radius: 8px;
    overflow: hidden;
    width: 80%;
    border: 3px solid lightgrey;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    filter: brightness(100%) saturate(100%);
}

@media (max-width: 639px) {
    .contact-section .our-location-map {
        width: 100%;
    }
}

.contact-section .our-location-map:hover {
    border-color: grey;
    filter: brightness(80%); 
}

.contact-section .map-instruction {
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.4);
}

.contact-section .map-instruction p {
    font-size: 0.71rem;
    text-align: center;
    color: lightgrey !important;
}

/* Forms */
.chronocredits {
    display: none;
}

.nui.form ::placeholder {
    color: lightgrey !important;
}

form.nui.form {
    margin-top: 40px !important;
    gap: 10px !important;
}

.nui.form:has(.nui.segment) {
    margin-top: 20px !important;
}

@media (max-width: 640px) {
    .nui.form {
        gap: 5px !important;
    }
}

.nui.form:not(.product-items) > .field.holder {
    display: grid;
    grid-template-columns: 140px 1fr;
    column-gap: 0;
    align-items: start; 
    position: relative;
}

@media (max-width: 640px) {
    .nui.form .field.holder {
        grid-template-columns: 1fr;
    }
}

.nui.form .field.holder.field_textarea {
    grid-template-columns: 1fr;
} 

.nui.form .field.holder > label {
    font-weight: normal;
    white-space: nowrap;
    color: #56513d !important;
    margin-top: 8px;
}

.nui.form .field.holder input,
.nui.form .field.holder .selection,
.nui.form .field.holder textarea {
    font-family: 'InterText', sans-serif !important;
    font-size: 1rem;
    margin-top: 5px;
    width: 100% !important;
}

.nui.form.product-items {
    margin-top: 0 !important;
    display: grid;
    grid-template-columns: 1fr 120px auto;
}

@media (max-width: 639px) { 
    .nui.form.product-items {
        grid-template-columns: 1fr 120px;
        grid-auto-flow: row; 
    }

    .nui.form.product-items .remove-clone {
        grid-column: 1 / -1;
        width: fit-content;
        justify-self: start;
    }
}

.nui.form.product-items > .field.holder input {
    margin-top: 5px !important;
}

.nui.form > .field.holder .errormsg {
    position: absolute;
    top: 100%; 
    margin-top: -2px;
    right: 0;
    color: red !important;
    font-size: 0.79rem;
}

.nui.form.product-items > .field.holder .errormsg {
    margin-top: -6px;
}

.nui.form .nui.segment {
    border: 0;
    padding: 20px;
    color: white !important;
    background-color: #56513d !important;
    font-size: 1.29rem;
}

#submit {
    padding: 10px 30px;
    line-height: 1;
    background-color: #637626 !important;
    color: white !important;
    border: 1px solid white !important;
    border-radius: 4px;
    display: inline-block;
    align-self: left;
    text-transform: none;
    font-size: 1rem;
    font-weight: normal !important;
    margin-top: 20px;
    transition: background-color 0.1s;
}

#submit:hover {
    background-color: #7c9630 !important;
    color: white !important;
}
