﻿ .umbraco-forms-form,
form {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif !important;
}

.cm-form__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.umbraco-forms-form .cmcontactform input.text {
    max-width: 450px !important;
    padding: 5px;
    display: block;
    width: 95%;
    font-size: 1rem;
    color: black;
}

.umbraco-forms-form.cmsignupform.umbraco-forms-CraneMuseum input.text,
.umbraco-forms-form.cmsignupform.umbraco-forms-CraneMuseum textarea {
    max-width: none !important;
    width: 100% !important;
}
.guest-minor-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 4px;
    font-size: 0.875rem;
    cursor: pointer;
}

    .guest-field-group label {
        font-size: 0.875rem;
        color: var(--color-text-secondary);
    }

.cmsignupform .umbraco-forms-navigation {
    padding: 0 !important;
}

    .cm-form__grid > .col-md-12 {
        grid-column: span 12;
    }

    .cm-form__grid > .col-md-6 {
        grid-column: span 6;
    }

    .cm-form__grid > .col-md-4 {
        grid-column: span 4;
    }

    .cm-form__grid > .col-md-3 {
        grid-column: span 3;
    }

    .cm-form__grid > .umbraco-forms-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .cm-form__grid > .col-md-12 {
        grid-column: span 12;
    }

.cmcontactform .umbraco-forms-field.longanswer textarea {
    max-width: none !important;
    width: 98%;
    box-sizing: border-box;
    max-height: 100px;
}

.cmcontactform .umbraco-forms-field input[type="text"],
.cmcontactform .umbraco-forms-field input[type="tel"],
.cmcontactform .umbraco-forms-field input[type="email"], 
.cmcontactform .umbraco-forms-field input[type="datetime-local"] {
    max-width: 450px !important;
}

.codegate input {
    min-width: 550px;
}

.umbraco-forms-form.cmsignupform {
    margin-top: 20px;
}

.umbraco-forms-form.cmcontactform {
    margin-top: 0px;
}

.cmsignupform .umbraco-forms-field .umbraco-forms-label {
        display: none;
}

.cmsignupform .umbraco-forms-field {
    display: flex;
    flex-direction: column;
}

.umbraco-forms-field .umbraco-forms-label {
    order: 1;
}

.umbraco-forms-field input:not(.guest-email) {
    order: 2;
    max-height: 32px;
}

 .codegate input,
 #booking-slot{
     max-height: 32px;
 }


.umbraco-forms-field .umbraco-forms-tooltip {
    order: 3;
    color: #666666;
    font-size: 12px;
}

.cmchecklist {
    display: flex;
    flex-wrap: wrap;
    float: none;
    gap: 0.5rem 1rem;
    align-items: center;
}

    .cmchecklist > div label {
        margin: 0;
        padding: 0;
        line-height: 1.2rem;
    }

.cmchecklist > div{
    display: flex;
    flex-direction: row;
    align-content: end;
    justify-content: center;
    gap: 0.5rem;

}

.cmcheckbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid var(--crane-blue);
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    position: relative;
    vertical-align: bottom;
    border-color: #bbb;
}

    .cmcheckbox:checked {
        background-color: var(--crane-blue);
    }

        .cmcheckbox:checked::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            width: 35%;
            height: 60%;
            border: 2px solid white;
            border-top: none;
            border-left: none;
            transform: translate(-50%, -60%) rotate(45deg);
        }

    .umbraco-forms-form.cmcheckbox input {
        margin-right: 4px;
        padding-left: 10px;
    }

.submitmessage-styling {
    display: block;
    background-color: #eaf6ed;
    border: 1px solid #4caf50;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
}

.cmchecklist > div .cmcheckbox {
    order: 1;
}

.cmchecklist > div label {
    order: 2;
}

.cmcontactform fieldset {
    padding: 0 !important;
    margin: 0;
    border: none;
}

.umbraco-forms-form legend,
.codegate{
    font-weight: 700;
    font-size: 14px !important;
    line-height: 1.2em;
    margin-bottom: 10px;
}

label.umbraco-forms-label,
.codegate label{
    font-weight: 700 !important;
    display: block;
    background: 0 0 !important;
    font-size: 14px;
}

.umbraco-forms-form input.text:focus,
.codegate input:focus,
#booking-slot:focus{
    border: 1px solid #66afe9 !important;
    box-shadow: 0px 0px 5px 0px rgba(102, 175, 233, 0.6);
    outline: none !important;
}

.umbraco-forms-form input[type="text"] {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
}
 .umbraco-forms-form input[type="submit"]:hover {
     opacity: 0.9;
 }

.error-message {
    display: block;
    background-color: #fdecea;
    border: 1px solid #f44336;
    border-left: 4px solid #f44336;
    color: #c62828;
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 550px;
    margin-bottom: 10px;
    max-height: 50px;
}

.validation-summary-errors ul {
    margin: 0 !important;
    padding: 0 !important;
}

.validation-summary-errors ul li {
    display: block;
    background-color: #fdecea;
    border: 1px solid #f44336;
    border-left: 4px solid #f44336;
    color: #c62828;
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 550px;
    margin-bottom: 10px;
    max-height: 50px;
    margin-left: 0;
}

.crane-email-notice {
    display: block;
    border: 1px solid #f9a825;
    border-left: 4px solid #f9a825;
    background-color: #fffde7;
    color: #e65100;
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 550px;
    margin-bottom: 10px;
    max-height: 50px;
}

#booking-slot {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin: .5em 0;
    border: 1px solid #bbb;
    color: #000000;
    box-sizing: inherit;
    width: 98%;
    margin: .5em 0;
    border: 1px solid #bbb;
    min-height: 32px;
    border-radius: 3px;
}

.cmsignupform .umbraco-forms-fieldset:has(input.hidden):not(:has(input:not([type="hidden"]):not(.hidden))) {
    display: none;
    margin: 0;
    padding: 0;
}

input.password-text {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight:550;
}

input.password-text::placeholder {
    color: #666666;
    font-size: 12px;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif !important;
    padding-left: 5px;
    font-weight: 700;
}

.hidden-message {
    display: none;
    margin-top: 0px;
    padding: 10px 20px;
}

/* --- Guest row container --- */
.guest-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background-color: #fafafa;
}

/* --- Adult and minor field wrappers --- */
.guest-adult-fields,
.guest-minor-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Field group (label + input pair) --- */
.guest-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .guest-field-group label {
        font-weight: 700;
        font-size: 14px;
        font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
        display: block;
    }

/* --- All guest inputs inherit the form's existing input style --- */
.guest-row input[type="text"],
.guest-row input[type="email"],
.guest-row input[type="tel"] {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 4px 6px;
    width: 100%;
    box-sizing: border-box;
    min-height: 32px;
    color: #000;
    background-color: #fff;
}

    .guest-row input[type="text"]:focus,
    .guest-row input[type="email"]:focus,
    .guest-row input[type="tel"]:focus {
        border: 1px solid #66afe9 !important;
        box-shadow: 0px 0px 5px 0px rgba(102, 175, 233, 0.6);
        outline: none !important;
    }

/* --- Under 18 checkbox label --- */
.guest-minor-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin: 0;
}

.guest-minor-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    cursor: pointer;
    accent-color: var(--crane-blue);
}
.form-text {
    font-size: 0.9rem;
    color: #555;
    margin-top: 4px;
}


/* --- Remove button --- */
.remove-guest-btn {
    align-self: flex-start;
    font-size: 13px;
    padding: 4px 12px;
    min-height: 28px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
    transition: background-color 0.15s, color 0.15s;
}

    .remove-guest-btn:hover {
        background-color: #f44336;
        border-color: #f44336;
        color: #fff;
    }

/* --- Mobile --- */
@media (max-width: 768px) {
    .guest-row {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .cm-form__grid > .col-md-6,
    .cm-form__grid > .col-md-4,
    .cm-form__grid > .col-md-3 {
        grid-column: span 12;
        width: 100%;
    }

    .cm-form__grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;
    }

    .umbraco-forms-form.cmsignupform {
        padding-left: 10px;
        padding-right: 10px;
    }

    .umbraco-forms-form.cmcontactform {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cmcontactform .umbraco-forms-field.longanswer textarea {
        width: 95%;
    }

    .codegate input {
        min-width: 200px;
    }

    .error-message {
        max-width: 243px;
        max-height: none;
    }

    #guest-limit-message {
        padding: 20px 20px;
    }
}

