/* Custom Contact Form Styles */
.custom-contact-form-container { 
    background: #fff; 
    width: 43.5rem !important;
    max-width: 43.5rem !important;
    margin: 0 auto;
    flex-shrink: 0;
    position: relative;
    border-radius: 1.25rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-weight: 300;
}

.phone-group {
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    gap: 0.5rem;
    height: 3rem;
    flex: 1.185;
}

.custom-contact-form-container .custom-contact-form-content select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23333" d="M1.41 0.29L6 4.88l4.59-4.59L12 1.71 6 7.71 0 1.71z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
}

.custom-contact-form-container .phone-group select.phone-prefix-select:hover {
    cursor: pointer !important;
}

.phone-group select.phone-prefix-select {
    padding: 0.5rem 1.5rem;
    background: #DCDCDC;
    color: #000;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.25rem;
    height: 3rem;
    gap: 1rem;
    width: 6.5rem;
    max-width: 6.5rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70 95L30 55h80z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem 1.25rem;
}

.phone-group input.phone-number-input {
    flex: 1;
    border: none !important;
    width: 13rem;
    background: #DCDCDC !important;
    padding: 0.5rem 1.5rem !important;
    height: 3rem;
    font-size: 1rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-weight: 300;
    line-height: 1.25rem;
}

.custom-contact-form-content label {
    display: flex;
    gap: 0rem;
    margin-bottom: 1rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    color: #000000;
}

.custom-contact-form-content label:first-of-type {
    margin-top: 0.9rem;
}

.custom-contact-form-content label:last-of-type {
    margin-bottom: 1.5rem;
}

.custom-contact-form-content input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    padding: 0;
    margin-right: 0.625rem;
}

.custom-contact-form-content button {
    width: 12rem;
    height: 3.25rem;
    padding: 0.88rem 3rem;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.25rem;
    border: 0.125rem solid #000;
    background: #fff;
    color: #000;
    border-radius: 2rem;
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, visibility 0.3s ease, opacity 0.3s ease;
}

.custom-contact-form-content button:hover {
    background: #000;
    color: #fff;
}

.custom-contact-form-content button.hidden {
    visibility: hidden;
    opacity: 0;
}

.button-message-container {
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    width: 26rem;
    height: 3.25rem;
    margin-top: 1rem;
}

.form-message {
    display: none;
    width: 12rem;
    max-width: 12rem;
    height: 3.25rem;
    padding: 0.88rem 3rem;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.25rem;
    text-align: center;
    border-radius: 2rem;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 0.125rem solid #000;
    background: #fff;
    color: #000;
}

.form-message.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.form-message.success {
    border: 0.125rem solid #205B2D;
    background: #E6F0E8;
    width: 26rem;
    max-width: 26rem;
}

.form-message.success .message-content {
    color: #205B2D;
    line-height: 1.25rem;
}

.form-message.error {
    display: flex;
    border: 0.125rem solid #99182C;
    background: #F8E6E9;
    width: 26rem;
    max-width: 26rem;
}

.form-message.error .message-content {
    color: #99182C;
    line-height: 1.25rem;
}

.custom-contact-form {
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}

.tabs { 
    list-style: none; 
    margin: 0;
    padding: 0;
    background: #fff;
    width: auto;
    overflow: hidden;
}

.tabs li { 
    float: left; 
    position: relative; 
}

.tabs a.physical-tab { 
    float: left; 
    padding: 1rem 2rem 0.3125rem 2rem;
    text-decoration: none;
    color: #000000; 
    background: #fff;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    height: 3.1875rem;
    text-align: center;
    display: block;
}

.tabs a.legal-tab { 
    float: left; 
    padding: 0.88rem 2rem 0.625rem 2rem;
    text-decoration: none;
    color: #000000;
    background: #fff;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    height: 3.1875rem;
    text-align: center;
    display: block;
}

.tabs .active a { 
    background: #EFEFEF; 
    color: #000000; 
}

.tabs li:before, .tabs li:after, 
.tabs li a:before, .tabs li a:after {
    position: absolute;
    bottom: 0; 
}

.tabs li:last-child:after, .tabs li:last-child a:after,
.tabs li:first-child:before, .tabs li:first-child a:before,
.tabs .active:after, .tabs .active:before, 
.tabs .active a:after, .tabs .active a:before {
    content: "";
}

.tabs .active:before, .tabs .active:after {
    background: #EFEFEF;
    z-index: 1;
    width: 1.5rem;
    height: 0.75rem;
    border-radius: 1.25rem; 
}

.tabs li:before, .tabs li:after {
    background: #fff; 
    width: 0.625rem;
    height: 0.625rem;
    z-index: 1;
    border-radius: 1.25rem; 
}

.tabs li:before {
    left: -0.625rem;
    border-radius: 1.25rem;
}

.tabs li:after { 
    right: -0.625rem;
    border-radius: 1.25rem;
}

.tabs li a:after, .tabs li a:before {
    width: 1.25rem;
    height: 1.25rem;
    z-index: 2;
    border-radius: 1.25rem;
}

.tabs .active a:after, .tabs .active a:before {
    background: #fff; 
}

.tabs li a:before {
    left: -1.25rem;
}

.tabs li a:after {
    right: -1.25rem;
}

.tab-content {
    display: none;
    border-radius: 1.25rem; 
}

.tab-content.active {
    display: block;
    border-radius: 0 0 1.25rem 1.25rem; 
}

.custom-contact-form-content {
    padding: 2.5rem 2rem 2.5rem 2rem;
    background: #EFEFEF;
    border-radius: 0 0 1.25rem 1.25rem; 
}

.custom-contact-form-content input,
.custom-contact-form-content textarea {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    background: #DCDCDC; 
    color: #000; 
    font-family: 'Fedra Sans Alt Pro', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
    height: 3rem;
}

.custom-contact-form-content input::placeholder,
.custom-contact-form-content textarea::placeholder {
    color: #000; 
    opacity: 1; 
}

.custom-contact-form-content .input-row {
    display: flex;
    gap: 0.5rem;
}

.custom-contact-form-content .input-row-legal {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0rem;
}

.custom-contact-form-content .input-row input,
.custom-contact-form-content .input-row select,
.custom-contact-form-content .input-row-legal input {
    flex: 1; 
}

.custom-contact-form-content input[type="checkbox"]:hover {
    cursor: pointer;
}

.custom-contact-form-content label span {
    margin-top: 0;
    font-weight: 300;
}

.privacy {
    color: #000000 !important; 
    margin-top: 1px;
    text-decoration: underline !important; 
    font-family: 'Fedra Sans Alt Pro', sans-serif; 
    font-size: 1rem;
    font-weight: 300;
}

.privacy:hover {
    color: #888 !important;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.custom-contact-form-container input[type="text"],
.custom-contact-form-container input[type="email"],
.custom-contact-form-container select {
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
    border: none;
    background: #DCDCDC;
    color: #000;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 0.5rem;
    box-sizing: border-box;
    appearance: none;
}

.custom-contact-form-container textarea.custom-textarea {
    padding: 0.75rem 1.5rem;
    margin-bottom: 0rem !important;
    border: none;
    overflow-y: hidden;
    background: #DCDCDC;
    color: #000;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 0.5rem;
    box-sizing: border-box;
    appearance: none;
    height: auto;
    min-height: 7.5rem;
    line-height: 1.5;
    resize: none;
    -webkit-text-size-adjust: 100%;
}

.textarea-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.textarea-hidden {
    position: absolute;
    visibility: hidden;
    height: 0;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    background: #DCDCDC;
    color: #000;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 0.5rem;
    box-sizing: border-box;
    line-height: 1.5;
    resize: none;
    overflow-y: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
}

.custom-contact-form-content select {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70 95L30 55h80z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.25rem 1.25rem;
    height: 3rem;
}

.country-select {
    width: 100%;
    max-width: 100%;
}

.country-select:hover {
    cursor: pointer;
}

@media (max-width: 921px) {
    .custom-contact-form-container {
        width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0;
        border-radius: 0.625rem;
    }

    .custom-contact-form {
        border-radius: 0.625rem;
    }

    .tabs {
        display: flex;
        background: #fff;
        border-radius: 0.625rem 0.625rem 0 0;
        overflow: hidden;
        gap: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .tabs li {
        float: none;
    }

    .tabs li:before,
    .tabs li:after,
    .tabs li a:before,
    .tabs li a:after,
    .tabs .active:before,
    .tabs .active:after,
    .tabs .active a:before,
    .tabs .active a:after {
        opacity: 0;
    }

    .tabs a.physical-tab,
    .tabs a.legal-tab {
        font-size: 1rem;
        padding: 0;
        height: auto;
        text-align: left;
        border-radius: 0;
        background: #fff;
        border-bottom: 2px solid transparent;
    }

    .tabs .active a {
        background: #fff;
        border-bottom: 1px solid #000;
    }

    .custom-contact-form-content {
        padding: 0;
        background: #fff;
        border-radius: 0 0 0.625rem 0.625rem;
        margin-bottom: 1rem;
    }

    .custom-contact-form-content label span.personal {
        width: 17rem !important;
    }

    .custom-contact-form-content .input-row {
        flex-direction: column;
        gap: 0rem;
        margin-bottom: 0rem;
    }

    .custom-contact-form-content .input-row-legal {
        flex-direction: column;
        gap: 0rem;
        margin-bottom: 0rem;
    }

    .custom-contact-form-content input.checkbox-marketing[type="checkbox"],
    .custom-contact-form-content input.checkbox-personal[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        padding: 0 !important;
    }

    .custom-contact-form-content .input-row input,
    .custom-contact-form-content .input-row select {
        width: 100%;
        padding: 0.88rem 1.5rem;
        padding-right: 2rem !important;
        font-size: 1rem;
        height: 3.1rem;
        line-height: 1.35rem;
    }

    .custom-contact-form-content .input-row-legal input {
        width: 100%;
        padding: 0.88rem 1.5rem;
        font-size: 1rem;
        height: 3rem;
        line-height: 1.25rem;
    }

    .custom-contact-form-content textarea.custom-textarea {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin-top: 0rem;
        height: auto;
        min-height: 7.5rem;
        resize: none;
        overflow-y: hidden;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
    }

    .textarea-hidden {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        height: 0;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
    }

    .custom-contact-form-content label {
        font-size: 1rem;
        margin-bottom: 1rem;
        gap: 0rem;
    }

    .custom-contact-form-content label:first-of-type {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    .custom-contact-form-content label:last-of-type {
        margin-bottom: 1.5rem;
        width: 16rem;
    }

    .custom-contact-form-content label span {
        margin-top: 0;
        width: auto;
    }

    .custom-contact-form-content label span:first-of-type {
        width: 17rem;
        margin-top: 1rem;
    }

    .custom-contact-form-content label span:last-of-type {
        margin-top: -0.2rem;
    }

    .custom-contact-form-content button {
        width: 100%;
        max-width: 12rem;
        height: 3.25rem;
        padding: 0.88rem 3rem;
        font-family: 'Fedra Sans Alt Pro', sans-serif;
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.25rem;
        border: 2px solid #000;
        background: #000;
        color: #fff;
        border-radius: 2rem;
        cursor: pointer;
        margin: 1rem auto;
        transition: background 0.2s ease, color 0.2s ease, visibility 0.3s ease, opacity 0.3s ease;
    }

    .custom-contact-form-content button:hover {
        background: #fff;
        color: #000;
    }

    .custom-contact-form-content select {
        background-position: right 1rem center;
        background-size: 1rem 1rem;
    }

    .phone-group {
        flex-direction: row;
        align-items: stretch;
        height: 3rem;
    }

    .phone-group select.phone-prefix-select {
        padding: 0.88rem 1.5rem;
        max-width: 6.5rem;
        padding-right: 2rem;
        align-items: center;
        justify-content: center;
        text-align: left;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70 95L30 55h80z' fill='%23000'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1rem 1rem;
    }

    .phone-group input.phone-number-input {
        padding: 0.88rem 1.5rem !important;
        height: 3.1rem !important;
        font-size: 1rem !important;
        line-height: 1.25rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .button-message-container {
        width: 100%;
        max-width: 12rem;
        height: 3.25rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 1rem auto;
        position: relative;
    }

    .form-message {
        width: 100%;
        max-width: 12rem;
        height: 3.25rem;
        padding: 0.88rem 2rem;
        font-family: 'Fedra Sans Alt Pro', sans-serif;
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.25rem;
        text-align: center;
        border-radius: 2rem;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        display: none;
        transition: opacity 0.3s ease;
        border: 0.125rem solid #000;
        background: #fff;
        color: #000;
    }

    .form-message.active {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }

    .form-message.success {
        border: 0.125rem solid #205B2D;
        background: #E6F0E8;
        max-width: 23rem;
        width: 23rem;
        left: -46%;
    }

    .form-message.success .message-content {
        color: #205B2D;
        line-height: 1.25rem;
    }

    .form-message.error {
        display: flex;
        border: 0.125rem solid #99182C;
        background: #F8E6E9;
        max-width: 23rem;
        width: 23rem;
        left: -46%;
    }

    .form-message.error .message-content {
        color: #99182C;
        line-height: 1.25rem;
    }
}