/*
 * Plugin: Rolex Custom Components
 * Author: Rida Labbar
 * Year: 2026
 * File: components\rolex-contact-form\assets\contact-form.css
 */

.rcc-contact-form {
    width: 100%;
    padding: 60px 0;
    color: #452c1e;
    background: #f9f7f4;
}

.rcc-contact-form.is-step-2 {
    padding-top: 30px;
}

.rcc-contact-form__form {
    max-width: 960px;
    margin: 0 auto;
}

.rcc-contact-form__step {
    display: none;
    text-align: center;
}

.rcc-contact-form__step.is-active {
    display: block;
}

.rcc-contact-form__title {
    font-weight: 600;
    margin-bottom: 8px;
}

.rcc-contact-form__heading {
    font-size: 2rem;
    margin-bottom: 12px;
}

.rcc-contact-form__desc {
    margin-bottom: 24px;
}

.rcc-contact-form__textarea {
    width: 100%;
    min-height: 180px;
    padding: 20px;
    border: 1px solid #e3dcd1;
    background: #ffffff;
    resize: vertical;
}

.rcc-contact-form__next,
.rcc-contact-form__submit,
.rcc-contact-form__back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 999px;
    border: 0;
    background: #127749;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.rcc-contact-form__back-home:hover,
.rcc-contact-form__submit:hover,
.rcc-contact-form__next:hover {
    background: #006039 !important;
}

.rcc-contact-form__back {
    background: transparent;
    border: 0;
    color: #000000;
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 17px;
    line-height: 0.8;
    padding: 0;
    box-shadow: none !important;
    text-transform: none;
    margin-top: 25px;
    /* margin-bottom: 30px; */
}

.rcc-contact-form__back:hover,
.rcc-contact-form__back:focus {
    background: transparent !important;
    box-shadow: none !important;
    color: #000000 !important;
}

.rcc-contact-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    text-align: start;
    align-items: start;
    margin-bottom: 20px;
}

.rcc-contact-form__step--2 {
    text-align: center;
}

.rcc-contact-form__step2-back {
    text-align: start;
    margin-top: 70px;
    margin-bottom: 0;
    width: 100%;
}

.rcc-contact-form__back-icon {
    fill: #000000;
    transform: rotate(180deg);
}

[dir="rtl"] .rcc-contact-form__back-icon {
    transform: rotate(0deg);
}

.rcc-contact-form__back:hover .rcc-contact-form__back-icon,
.rcc-contact-form__back:focus .rcc-contact-form__back-icon {
    fill: #000000 !important;
}

.rcc-contact-form__step2-title {
    color: #452c1e;
    font-weight: 700;
    font-size: clamp(1.125rem, 0.9375rem + 0.4688vw, 1.5rem);
    line-height: 1.585;
    margin: 0 0 8px;
}

.rcc-contact-form__step2-inner {
    text-align: start;
}

.rcc-contact-form__step--2 .rcc-contact-form__heading {
    margin-bottom: 1.25rem;
    font-size: clamp(1.875rem, 1.25rem + 1.5625vw, 3.125rem);
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
}

.rcc-contact-form__step--2 .rcc-contact-form__desc {
    font-size: clamp(1.125rem, 1.0625rem + 0.1563vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 50px;
    text-align: center;
}

.rcc-contact-form__row--names {
    display: grid;
    grid-template-columns: calc(var(--grid-col-unit) * 2) auto;
    grid-auto-flow: column;
    column-gap: 1rem;
    margin-bottom: 10px;
}

/* Tablet+ layout: names row */
@media (min-width: 48rem) {
    .rcc-contact-form__row--names {
        grid-template-columns: 1fr 2fr 2fr;
    }
}

/* Mobile layout: names row */
@media (max-width: 767px) {
    .rcc-contact-form__control,
    .rcc-contact-form__field input,
    .rcc-contact-form__field select,
    .rcc-contact-form__control:focus,
    .rcc-contact-form__field input:focus,
    .rcc-contact-form__field select:focus {
        margin-top: 7px !important;
    }
}

/* Mobile layout: control spacing */
@media (max-width: 767px) {
    .rcc-contact-form__row--names {
        grid-template-columns: calc(var(--grid-col-unit) * 2) 1fr;
        row-gap: 20px;
    }

    .rcc-contact-form__row--names > .rcc-contact-form__field:last-child {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.rcc-contact-form__row--phone {
    display: grid;
    grid-template-columns: calc(var(--grid-col-unit) * 2) 1fr;
    grid-auto-flow: column;
    column-gap: 1rem;
    align-items: start;
    margin-bottom: 0;
}

.rcc-contact-form__field {
    text-align: start;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.rcc-contact-form__field--spaced {
    margin: 30px 0;
}

.rcc-contact-form__label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(69, 44, 30, 0.5);
}

.rcc-contact-form__control,
.rcc-contact-form__field input,
.rcc-contact-form__field select,
.rcc-contact-form__control:focus,
.rcc-contact-form__field input:focus,
.rcc-contact-form__field select:focus
{
    background-color: transparent;
    background-image: linear-gradient(#000000, #000000), linear-gradient(#000000, #000000) !important;
    background-size: 0 2px, 100% 1px !important;
    border: 0;
    border-bottom-width: 1px;
    border-top-color: rgb(118 118 118 / 1);
    border-bottom-color: rgb(118 118 118 / 1);
    padding-top: 0;
    padding-bottom: 15px !important;
    margin-top: 10px;
    border-radius: 0;
    white-space: nowrap;
    appearance: none;
    min-width: 0;
    font-size: clamp(1rem, 0.9375rem + 0.1563vw, 1.125rem);
    line-height: 1.5;
    font-weight: 700;
    color: #452c1e;
}

/* .rcc-contact-form__control:focus,
.rcc-contact-form__field input:focus,
.rcc-contact-form__field select:focus {
    outline: none;
    box-shadow: none;
    background: transparent !important;
    background-color: transparent;
    background-image: linear-gradient(#000000, #000000), linear-gradient(#000000, #000000) !important;
    border-bottom-color: rgb(118 118 118 / 1);
} */

.rcc-contact-form__control:active,
.rcc-contact-form__field input:active,
.rcc-contact-form__field select:active {
    outline: none !important;
}

.rcc-contact-form__field {
    margin-bottom: 30px;
}

.rcc-contact-form__control::placeholder {
    color: rgb(33 33 33);
}

.rcc-contact-form__field--readonly input {
    color: rgb(118 118 118);
    cursor: not-allowed;
}

.rcc-contact-form__field input:disabled,
.rcc-contact-form__field select:disabled {
    border: unset !important;
    background-image: none !important;
}

.rcc-contact-form__field--float .rcc-contact-form__label--float {
    position: absolute;
    left: 0;
    right: 0;
    top: -1.25rem;
    font-size: 13px;
    transition: all 0.2s ease;
}

.rcc-contact-form__control--float {
    padding-top: 10px;
    padding-bottom: 6px;
}

.rcc-contact-form__control--float:placeholder-shown + .rcc-contact-form__label--float {
    top: 0.5rem;
    font-size: 15px;
    color: rgb(33 33 33);
}

.rcc-contact-form__control--float:focus + .rcc-contact-form__label--float {
    top: -1.25rem;
    font-size: 13px;
    color: rgba(69, 44, 30, 0.5);
}

/* Step 2: lock labels to top-left and disable float movement */
.rcc-contact-form__step--2 .rcc-contact-form__label,
.rcc-contact-form__step--2 .rcc-contact-form__label--float {
    font-size: 13px;
    position: absolute;
    top: -1.25rem;
    left: 0;
    right: auto;
}

.rcc-contact-form__step--2 .rcc-contact-form__control--float:placeholder-shown + .rcc-contact-form__label--float,
.rcc-contact-form__step--2 .rcc-contact-form__control--float:focus + .rcc-contact-form__label--float {
    top: -1.25rem;
    font-size: 13px;
    color: rgba(69, 44, 30, 0.5);
}

.rcc-contact-form__step--2 .form-group .form-control {
    font-weight: 700;
}

.rcc-contact-form__step--2 .rcc-contact-form__control,
.rcc-contact-form__step--2 .rcc-contact-form__field input,
.rcc-contact-form__step--2 .rcc-contact-form__field select {
    font-weight: 700;
}

[dir="rtl"] .rcc-contact-form__step--2 .rcc-contact-form__label,
[dir="rtl"] .rcc-contact-form__step--2 .rcc-contact-form__label--float {
    left: auto;
    right: 0;
}

.rcc-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rcc-select-wrap .rcc-contact-form__control,
.rcc-select-wrap select {
    margin-top: 5px;
    padding-bottom: 10px !important;
    padding-top: 0 !important;
    padding-left: 0px;
    /* padding-bottom: 0 !important; */
}

.rcc-select-wrap select,
.rcc-select-wrap select:focus
{
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
    appearance: none;
    background: transparent;
    background-image: none !important;
    border-bottom: 1px solid #000000 !important;
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    margin-top: -1px !important;
}

.rcc-select-icon {
    position: absolute;
    right: 0;
    fill: rgb(0, 0, 0);
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    height: 13px;
    width: 13px;
    margin-top: 0;
}

[dir="rtl"] .rcc-select-icon {
    right: auto;
    left: 0;
}

[dir="rtl"] .rcc-contact-form__field--phone input {
    text-align: right;
}

[dir="rtl"] .rcc-select-wrap select,
[dir="rtl"] .rcc-select-wrap select:focus {
    padding-left: 0;
    padding-right: 1.5rem;
}

.rcc-contact-form__mandatory {
    font-size: 13px;
    margin: 0 0 20px 0;
    color: rgb(69 44 30 / 1);
    font-weight: 400;
}

.rcc-contact-form__checkbox {
    display: flex;
    align-items: start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 400;
    cursor: default;
}

.rcc-contact-form__checkbox input {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid rgb(212 212 212);
    background: transparent;
    position: relative;
    cursor: pointer;
}

.rcc-contact-form__checkbox-control {
    display: inline-flex;
    align-items: center;
}

.rcc-contact-form__checkbox-text {
    padding-top: 3px;
    cursor: default;
}

.rcc-contact-form__checkbox--privacy {
    /* flex-wrap: wrap; */
    align-items: flex-start;
}

.rcc-contact-form__checkbox--privacy .rcc-contact-form__error--privacy {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.rcc-contact-form__checkbox-control:hover input {
    border-color: #127749;
}

.rcc-contact-form__checkbox-control:hover input::after {
    content: '';
    position: absolute;
    inset: 3px;
    background-color: white;
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2015%2015%27%3E%3Cpath%20d%3D%27M5.4%2C11.9L1.6%2C7.5l1.5-1.3l2.5%2C2.9L12%2C3.7l1.3%2C1.5L5.4%2C11.9z%27%20fill%3D%27%23127749%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.rcc-contact-form__checkbox input:checked {
    border-color: #127749;
    background: #127749;
}

.rcc-contact-form__checkbox input:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2015%2015%27%3E%3Cpath%20d%3D%27M5.4%2C11.9L1.6%2C7.5l1.5-1.3l2.5%2C2.9L12%2C3.7l1.3%2C1.5L5.4%2C11.9z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2015%2015%27%3E%3Cpath%20d%3D%27M5.4%2C11.9L1.6%2C7.5l1.5-1.3l2.5%2C2.9L12%2C3.7l1.3%2C1.5L5.4%2C11.9z%27%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;
}

.rcc-contact-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: var(--m-h-space);
}

.rcc-contact-form__submit {
    height: 2.75rem;
    padding: 0 30px;
    border-radius: 999px;
    background: #127749;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.rcc-contact-form__submit:hover {
    background: #006039;
}

.rcc-contact-form__field {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rcc-contact-form__field.is-error label {
    color: #b91c1c !important;
}

.rcc-contact-form__field.is-error .rcc-contact-form__label,
.rcc-contact-form__field.is-error .rcc-contact-form__label--float {
    color: #b91c1c !important;
}

.rcc-contact-form__field input,
.rcc-contact-form__field select {
    border: none;
    border-bottom: 1px solid #000000;
    background: transparent;
    font-weight: 600;
}

.rcc-contact-form__hint {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.rcc-contact-form__step--2 .rcc-contact-form__hint {
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 16px;
    color: #000000;
    font-weight: 400;
}

/* Tablet+ type scale for hints/errors */
@media (min-width: 48rem) {
    .rcc-contact-form__hint,
    .rcc-contact-form__error {
        font-size: 13px;
    }
}

.rcc-contact-form__error {
    text-align: start;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}

.rcc-contact-form__error--recaptcha {
    margin-top: 2rem;
    margin-bottom: 0;
}

.rcc-contact-form__field .rcc-contact-form__error {
    margin-top: -5px;
    margin-bottom: 0;
}

.rcc-contact-form__step--2 .form-group .form-control {
    margin-bottom: 0;
}

.rcc-contact-form__mandatory {
    font-size: 13px;
    margin: 15px 0;
    text-align: left;
    font-weight: 400;
}

.rcc-contact-form__privacy-link {
    color: rgb(18 119 73 / 1);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 400;
}

.rcc-contact-form__privacy-link:hover {
    color: rgb(33 33 33 / 1) !important;
}

.rcc-contact-form__privacy-link:visited {
    color: rgb(18 119 73 / 1);
}

.rcc-contact-form__checkbox {
    display: flex;
    gap: 10px;
    align-items: start;
    text-align: left;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 400;
}

.rcc-contact-form__actions {
    margin-top: 20px;
}

.rcc-contact-form__submit {
    position: relative;
    gap: 10px;
}

.rcc-contact-form__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 999px;
    display: none;
    animation: rcc-spin 0.8s linear infinite;
}

.rcc-contact-form__submit.is-loading .rcc-contact-form__spinner {
    display: inline-block;
}

.rcc-contact-form__submit.is-loading .rcc-contact-form__submit-text {
    opacity: 0.7;
}

@keyframes rcc-spin {
    to {
        transform: rotate(360deg);
    }
}

.rcc-contact-form__recaptcha {
    margin: 20px auto;
    display: inline-block;
}

.rcc-contact-form__back-home {
    margin-top: 30px;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__title {
    color: #452c1e;
    font-weight: 700;
    line-height: 1.585;
    font-size: clamp(1.125rem, 0.9375rem + 0.4688vw, 1.5rem);
    margin: 25px 0 0 0;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__heading {
    color: #452c1e;
    line-height: 1.1;
    font-weight: 700;
    font-size: clamp(1.875rem, 1.25rem + 1.5625vw, 3.125rem);
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__desc {
    font-size: clamp(1.125rem, 1.0625rem + 0.1563vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 40px;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__textarea {
    height: 180px;
    width: 100%;
    background: #ffffff;
    font-size: 16px;
    resize: none;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__textarea::placeholder {
    color: #9ca3af;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__textarea:focus {
    /* outline: none !important; */
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__textarea:focus-visible {
    /* outline: 2px solid green !important; */
    /* outline-offset: 3px !important; */
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__next {
    border-radius: 9999px;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 2.75rem;
    display: inline-flex;
    padding-left: 31px;
    padding-right: 31px;
    font-size: 14px;
    color: rgb(255 255 255 / 1);
    font-weight: 700;
    background-color: #127749;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
    text-transform: initial;
    margin-top: 30px;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__next:hover {
    background-color: #006039;
    box-shadow: none !important;
}

.rcc-contact-form__step[data-step="1"] .rcc-contact-form__next:focus-visible {
    outline: 2px solid green !important;
    outline-offset: 3px !important;
}

.rcc-contact-form__next-icon {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 5px;
    transform: rotate(360deg);
}

.rcc-contact-form__step--3 .rcc-contact-form__step3-title {
    color: rgb(69 44 30 / 1);
    font-weight: 700;
    font-size: clamp(1.125rem, 0.9375rem + 0.4688vw, 1.5rem);
    line-height: 1.585;
    margin: 0;
}

.rcc-contact-form__step--3 .rcc-contact-form__step3-heading {
    font-weight: 700;
    font-size: clamp(1.875rem, 1.25rem + 1.5625vw, 3.125rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    margin-top: 0;
    color: rgb(69 44 30 / 1);
}

.rcc-contact-form__step--3 .rcc-contact-form__step3-desc {
    margin: 0;
    font-size: clamp(1.125rem, 1.0625rem + 0.1563vw, 1.25rem);
    line-height: 1.6;
    font-weight: 700;
    color: rgb(69 44 30 / 1);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.rcc-contact-form__step--3 .rcc-contact-form__step3-note {
    font-size: clamp(1.125rem, 1.0625rem + 0.1563vw, 1.25rem);
    line-height: 1.6;
    color: rgb(69 44 30 / 1);
    margin: 0;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.rcc-contact-form__thankyou-image {
    text-align: center;
    margin-bottom: 70px;
    display: none;
}

.rcc-contact-form__thankyou-image.is-visible {
    display: block;
}

.rcc-contact-form__thankyou-image img {
    width: 100%;
    height: auto;
}

.rcc-contact-form__back-home {
    color: #ffffff !important;
    background-color: #127749 !important;
}

.rcc-contact-form__next-icon svg {
    display: block;
    fill: #ffffff;
}

.rcc-contact-form[dir="rtl"] .rcc-contact-form__next-icon {
    transform: rotate(180deg);
}

/* Prevent theme error underline styles from affecting the contact form */
.rcc-contact-form .form-group.has-error.is-focused .form-control {
    /* background-image: none !important; */
}

.rcc-contact-form__step[data-step="1"] .rcc-C7fullGrid {
    display: grid;
}

.rcc-contact-form__step1-content {
    text-align: center;
    grid-column: main;
}

.rcc-contact-form[dir="rtl"] {
    text-align: right;
}

.rcc-contact-form[dir="rtl"] .rcc-contact-form__row,
.rcc-contact-form[dir="rtl"] .rcc-contact-form__field,
.rcc-contact-form[dir="rtl"] .rcc-contact-form__mandatory,
.rcc-contact-form[dir="rtl"] .rcc-contact-form__checkbox {
    text-align: right;
}

/* Mobile heading scale */
@media (max-width: 767px) {
    .rcc-contact-form__heading {
        font-size: 1.6rem;
    }
}

/* Tablet+ textarea padding and step-1 spacing */
@media (min-width: 48rem) {
    .rcc-contact-form__step[data-step="1"] .rcc-contact-form__textarea {
        padding: 2.5rem;
    }

    .md\:col-\[3_\/_span_10\] {
        grid-column: 3 / span 10;
    }

    .rcc-contact-form__step[data-step="1"] .rcc-contact-form__next {
        margin-top: 40px;
    }
}
