/**
 * Theme Name: MetalCor Buildings
 * Template:   hello-elementor
 * Description: MetalCor Buildings Theme
 * Author: Brandon Stewart
 * Author URI: https://lumeforge.ca
 * Version: 1.0.0
 */

.grecaptcha-badge {
    visibility: hidden !important;
}

/* Alternative method - completely hide it */
.grecaptcha-badge {
    display: none !important;
}

.g-recaptcha-msg {
    font-size: 14px;
    font-weight: 600;
    margin-top: 30px;

    a {
        color: #2A343F;
        text-decoration: underline !important;

        &:hover,
        &:focus {
            color: #2A343F;
            text-decoration: none !important;
        }
    }
}

button {
    transition: all 0.3s ease-in-out;
}

.gform_body {
    counter-reset: heading-counter;
    font-family: "Proxima Nova";
}

.gform_body .heading-counter {
    display: flex;
    align-items: center;
    counter-increment: heading-counter;
    flex-direction: row;
    margin-bottom: 0;
    margin-top: 50px;
}

.gform_body .heading-counter:first-of-type {
    margin-top: 0;
    margin-bottom: 20px;
}

.gform_body .heading-counter::before {
    content: counter(heading-counter);

    background-color: #FF9F1E;
    color: #505562;
    width: 38px;
    height: 43px;
    margin-right: 20px; /* Space between square and text */

    /* Center the number inside the square */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Font styling for the number */
    font-family: "Proxima Nova";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 116%; /* 23.2px */
    letter-spacing: -0.2px;
}

.gform_body .gsection_title {
    margin: 0;
    padding: 0;

    color: #505562;

    /* H3 Heading */
    font-family: "Proxima Nova";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 116%; /* 23.2px */
    letter-spacing: -0.2px;
}

.gform_body .heading-counter .gsection_title {
    margin: 0;
    padding: 0;
}

.gform_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gfield_label {
    color: #2A343F;

    /* Links */
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.16px;
}

.gfield {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    grid-column: span 2;
}

@media (min-width: 768px) {
    .gfield--width-half {
        grid-column: span 1;
    }
}

/* Make (required) text screen reader only and show a asterisk */
.gfield_required_text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gfield_required::before {
    content: "*";
    color: #f87171;
    /*font-size: 16px;*/
    font-weight: bold;
    margin-left: 2px;
}

.gfield {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.gfield input {
    height: 50px;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    border-radius: 3px;
    border: 1px solid #F6F6F7;
    background: #F6F6F7;

    &::placeholder {
        color: #C0C0C0;
    }
}

.gfield_visibility_hidden {
    display: none !important;
}

.gform-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: end;
}

/* Button */
/*.gform_button {*/
/*    cursor: pointer;*/
/*    overflow: hidden;*/
/*    display: inline-flex;*/
/*    gap: 0.25rem;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    border-radius: 3px;*/
/*    font-weight: 600;*/
/*    border: 2px solid;*/

/*    padding: 0.75rem 1rem;*/
/*    font-size: 1rem;*/
/*    color: white;*/
/*    background-color: #15803d;*/
/*    border-color: #15803d;*/

/*    &:hover {*/
/*        color: #15803d;*/
/*        background-color: white;*/
/*        border-color: #15803d;*/
/*    }*/

/*    &:active {*/
/*        color: #15803d;*/
/*        background-color: white;*/
/*        border-color: #15803d;*/
/*    }*/

/*    @media (min-width: 768px) {*/
/*        padding: 1rem 1.25rem;*/
/*        font-size: 1.125rem;*/
/*    }*/

/*    @media (min-width: 1024px) {*/
/*        padding: 0.75rem 1.25rem;*/
/*        font-size: 1.125rem;*/
/*    }*/

/*    &.btn-disabled {*/
/*        color: #166534;*/
/*        background-color: #e5e7eb;*/
/*        border-color: #e5e7eb;*/
/*        cursor: default;*/

/*        &:hover,*/
/*        &:active {*/
/*            color: #166534;*/
/*            background-color: #e5e7eb;*/
/*            border-color: #e5e7eb;*/
/*        }*/
/*    }*/
/*}*/

/* Error messages */
.gform_submission_error {
    color: #f87171;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.gfield_validation_message {
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: -0.5rem;
}

.gfield_error input {
    border-color: #f87171;
}

/* Honeypot */
.gfield--type-honeypot {
    display: none;
}

/* Base input styles */
.gfield input {
    height: 50px;
    padding: 10px;
    font-size: 17px;
    border: 1px solid #F6F6F7;
    background: #F6F6F7;
    border-radius: 3px;
    width: 100%;

    &::placeholder {
        color: #C0C0C0;;
    }
}

/* Text input variations */
.gfield input[type="text"],
.gfield input[type="email"],
.gfield input[type="url"],
.gfield input[type="tel"],
.gfield input[type="password"],
.gfield input[type="search"] {
    height: 50px;
    padding: 10px;
    font-size: 17px;
    width: 100%;
    border: 1px solid #F6F6F7;

    &::placeholder {
        color: #C0C0C0;
    }

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        box-shadow: 0 0 0 2px rgba(255, 159, 30, 0.1);
    }
}

/* Number input */
.gfield input[type="number"] {
    height: 50px;
    padding: 10px;
    font-size: 17px;
    border: 1px solid #F6F6F7;
    border-radius: 3px;
    width: 100%;

    &::placeholder {
        color: #C0C0C0;;
    }

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        box-shadow: 0 0 0 2px rgba(255, 159, 30, 0.1);
    }
}

/* Date and time inputs */
.gfield input[type="date"],
.gfield input[type="time"],
.gfield input[type="datetime-local"] {
    height: 50px;
    padding: 10px;
    font-size: 17px;
    border: 1px solid #F6F6F7;
    border-radius: 3px;
    width: 100%;
    color: #000000;

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        box-shadow: 0 0 0 2px rgba(255, 159, 30, 0.1);
    }
}

/* Textarea */
.gfield textarea {
    min-height: 120px;
    font-weight: 600;
    padding: 10px;
    font-size: 17px;
    border: 1px solid #F6F6F7;
    border-radius: 3px;
    width: 100%;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
    background-color: #F6F6F7;

    &::placeholder {
        color: #C0C0C0;;
    }

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        box-shadow: 0 0 0 2px rgba(255, 159, 30, 0.1);
    }
}

/* Select dropdown */
.gfield select {
    height: 50px;
    padding: 10px;
    font-size: 17px;
    border: 1px solid #F6F6F7;
    font-weight: 600;
    border-radius: 3px;
    width: 100%;
    background-color: #F6F6F7;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        box-shadow: 0 0 0 2px rgba(255, 159, 30, 0.1);
    }
}

.gf_placeholder {
    color: #C0C0C0;
}

/* Multi-select */
.gfield select[multiple] {
    height: auto;
    min-height: 120px;
    padding: 10px;
    background-image: none;
    padding-right: 10px;
}

/* Checkbox and Radio containers */
.gfield .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.4;
}

/* Checkbox styling */
.gfield input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    border: 2px solid #D8D2C7;
    border-radius: 3px;
    background-color: #F6F6F7;
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;

    &:checked {
        background-color: #FF9F1E;
        border-color: #FF9F1E;
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
        background-size: 12px 12px;
        background-position: center;
        background-repeat: no-repeat;
    }

    &:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(34, 135, 23, 0.2);
    }
}

/* Radio button styling */
.gfield input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    border: 2px solid #D8D2C7;
    border-radius: 50%;
    background-color: #F6F6F7;
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;

    &:checked {
        background-color: #FF9F1E;
        border-color: #FF9F1E;
        background-image: radial-gradient(circle, white 30%, transparent 30%);
    }

    &:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(34, 135, 23, 0.2);
    }
}

/* Checkbox and radio labels */
.gfield .gchoice label {
    cursor: pointer;
    font-size: 17px;
    line-height: 1.4;
    color: #000000;
    margin: 0;
}

/* File upload */
.gfield input[type="file"] {
    height: auto;
    padding: 12px;
    font-size: 16px;
    border: 2px dashed #D8D2C7;
    border-radius: 3px;
    background-color: #fafafa;
    cursor: pointer;

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        background-color: rgba(34, 135, 23, 0.05);
    }

    &::file-selector-button {
        background-color: #FF9F1E;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 3px;
        font-size: 14px;
        font-weight: 500;
        margin-right: 12px;
        cursor: pointer;

        &:hover {
            background-color: #DE8000;
        }
    }
}

/* Range slider */
.gfield input[type="range"] {
    height: 6px;
    padding: 0;
    background: #D8D2C7;
    border: none;
    border-radius: 3px;
    appearance: none;

    &::-webkit-slider-thumb {
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #FF9F1E;
        cursor: pointer;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    &::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #FF9F1E;
        cursor: pointer;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    &:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(34, 135, 23, 0.2);
    }
}

/* Color picker */
.gfield input[type="color"] {
    height: 50px;
    padding: 5px;
    border: 1px solid #F6F6F7;
    border-radius: 3px;
    width: 100px;
    cursor: pointer;

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        box-shadow: 0 0 0 2px rgba(255, 159, 30, 0.1);
    }
}

/* Hidden input */
.gfield input[type="hidden"] {
    display: none;
}

/* Disabled state for all inputs */
.gfield input:disabled,
.gfield textarea:disabled,
.gfield select:disabled {
    background-color: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Read-only state */
.gfield input:read-only,
.gfield textarea:read-only {
    background-color: #f9f9f9;
    cursor: default;
}

/* Complex field containers */
.gfield .ginput_complex {
    display: grid;
    gap: 10px;

    /* Name field (first, last) */

    &.ginput_container_name {
        grid-template-columns: 1fr 1fr;

        @media (max-width: 640px) {
            grid-template-columns: 1fr;
        }
    }

    /* Address field */

    &.ginput_container_address {
        grid-template-columns: 1fr;
        gap: 10px;

        .ginput_left,
        .ginput_right,
        .ginput_full {
            input, select {
                height: 50px;
                padding: 10px;
                font-size: 17px;
                border: 1px solid #F6F6F7;
                border-radius: 3px;
                width: 100%;
            }
        }
    }
}

/* Phone field */
.gfield .ginput_container_phone input {
    height: 50px;
    padding: 10px;
    font-size: 17px;
    border: 1px solid #F6F6F7;
    border-radius: 3px;
    width: 100%;
}

/* List field */
.gfield .ginput_container_list {
    .gfield_list {
        border: 1px solid #F6F6F7;
        border-radius: 3px;
        overflow: hidden;

        .gfield_list_header {
            background-color: #f8f8f8;
            padding: 10px;
            font-weight: 500;
            border-bottom: 1px solid #D8D2C7;
        }

        .gfield_list_row {
            display: flex;

            input {
                border: none;
                border-right: 1px solid #D8D2C7;
                border-radius: 0;
                height: 50px;

                &:last-child {
                    border-right: none;
                }
            }
        }
    }
}

.gfield_description {
    font-size: 14px;
    font-weight: 600;
    color: #868686;
}

/* Datepicker container */
.gfield .ginput_container_date {
    position: relative;
    display: flex;
    align-items: center;
}

/* Datepicker input field */
.gfield input.datepicker,
.gfield input.gform-datepicker {
    height: 50px;
    padding: 10px 50px 10px 10px; /* Extra right padding for icon */
    font-size: 17px;
    font-weight: 600;
    border: 1px solid #F6F6F7;
    border-radius: 3px;
    width: 100%;
    background-color: #F6F6F7;

    &::placeholder {
        color: #C0C0C0;
    }

    &:focus {
        outline: none;
        border-color: #FF9F1E;
        box-shadow: 0 0 0 2px rgba(255, 159, 30, 0.1);
    }
}

/* Datepicker icon/trigger */
.gfield .ui-datepicker-trigger {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
    border: none;
    background: none;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;

    &:hover {
        opacity: 1;
    }
}

/* Style the datepicker icon to match your theme colors */
.gfield .ui-datepicker-trigger {
    filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(651%) hue-rotate(183deg) brightness(93%) contrast(89%);
}

.gfield:hover .ui-datepicker-trigger {
    filter: brightness(0) saturate(100%) invert(64%) sepia(77%) saturate(1357%) hue-rotate(14deg) brightness(101%) contrast(101%);
}

/* Error state for datepicker */
.gfield_error input.datepicker,
.gfield_error input.gform-datepicker {
    border-color: #f87171;
}

/* Disabled state */
.gfield input.datepicker:disabled,
.gfield input.gform-datepicker:disabled {
    background-color: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.gfield input.datepicker:disabled + .ui-datepicker-trigger {
    opacity: 0.3;
    cursor: not-allowed;
}


.gform_validation_errors {
    margin-bottom: 31px;
}

.gform_validation_error_link {
    color: #2a343f;
    font-weight: 400;
    text-decoration: none;

    &:hover,
    &:focus {
        text-decoration: underline;
        color: #2a343f;
    }
}

h2.gform_submission_error {
    font-size: 20px !important;
}

.gfield.hidden_label {
    > label {
        display: none;
    }
}

/* jQuery UI Datepicker popup styling */
.ui-datepicker {
    font-family: "Proxima Nova", sans-serif !important;
    font-size: 14px;
    border: 1px solid #D8D2C7;
    border-radius: 3px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: white;
    padding: 10px;
}

.ui-datepicker .ui-datepicker-header {
    background-color: #F6F6F7;
    color: #2A343F;
    border: none;
    border-radius: 3px 3px 0 0;
    padding: 10px;
    margin: -10px -10px 10px -10px;
    text-align: center;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-title {
    font-weight: 600;
    color: #2A343F;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ui-datepicker th {
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    color: #505562;
    font-size: 12px;
}

.ui-datepicker td {
    text-align: center;
    padding: 2px;
}

.ui-datepicker td a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #505562;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.ui-datepicker td a:hover {
    background-color: #F6F6F7;
    color: #2A343F;
}

.ui-datepicker td .ui-state-active {
    background-color: #FF9F1E;
    color: #2A343F;
    font-weight: 600;
}

.ui-datepicker .ui-state-disabled {
    color: #C0C0C0;
    cursor: not-allowed;
}

.ui-datepicker .ui-state-disabled:hover {
    background-color: transparent;
    color: #C0C0C0;
}

.dialog-widget  {
    .dialog-widget-content {
        width: 100% !important;
    }

    .dialog-message {
        width: 100% !important;
    }
}


#ui-datepicker-div {
    display: none;
}
