
/*================================================================================
  Component:  Contact Section (Products Page) - Enhanced Minimal Design
  Author:     Albaraa
================================================================================*/

/*--------------------------------------------------------------------------------
  Structure and Layout
--------------------------------------------------------------------------------*/
.contacts {
    padding-top: min(8.3333333333svw, 160px);
    padding-bottom: min(9.375svw, 180px);
    border-top: 1px solid rgba(199, 143, 199, 0.15);
    position: relative;
    overflow: hidden;
}

[dir="ltr"] .contacts {
    background: linear-gradient(135deg, #f8fbfc 0%, #ffffff 100%);
}

[dir="rtl"] .contacts {
    background: linear-gradient(-135deg, #f8fbfc 0%, #ffffff 100%);
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 1;
}

[dir="ltr"] .contacts::before {
    background: linear-gradient(90deg, transparent 0%, rgba(199, 143, 199, 0.3) 50%, transparent 100%);
}

[dir="rtl"] .contacts::before {
    background: linear-gradient(-90deg, transparent 0%, rgba(199, 143, 199, 0.3) 50%, transparent 100%);
}

@media screen and (orientation: portrait) {
    .contacts {
        padding-top: min(15svw, 80px);
        padding-bottom: min(20svw, 100px);
    }

        .contacts::before {
        height: 2px;
    }
}

.contacts__inner {
    display: grid;
    grid-template-columns: minmax(min(27.6041666667svw, 530px), 1fr) 1fr;
    gap: min(6.25svw, 120px);
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

@media screen and (orientation: portrait) {
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: min(12svw, 60px);
    }
}

.contacts__header {
    position: sticky;
    top: min(7.8125svw, 150px);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: min(1.5625svw, 30px);
    border-radius: min(1.0416666667svw, 20px);
    border: 1px solid rgba(199, 143, 199, 0.1);
    box-shadow: 0 min(0.5208333333svw, 10px) min(2.0833333333svw, 40px) rgba(199, 143, 199, 0.08);
}

@media screen and (orientation: portrait) {
    .contacts__header {
        position: static;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        padding: min(2svw, 20px);
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
}

/*--------------------------------------------------------------------------------
  Typography and Content
--------------------------------------------------------------------------------*/
.contacts__title {
    display: flex;
    align-items: baseline;
    gap: min(1.0416666667svw, 20px);
    padding-bottom: min(1.5625svw, 30px);
    margin-bottom: min(1.0416666667svw, 20px);
    position: relative;
}

.contacts__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: min(2.6041666667svw, 50px);
    height: 3px;
    border-radius: 2px;
}

[dir="ltr"] .contacts__title::after {
    left: 0;
    background: linear-gradient(90deg, #c78fc7, #d9b3d9);
}

[dir="rtl"] .contacts__title::after {
    right: 0;
    background: linear-gradient(-90deg, #c78fc7, #d9b3d9);
}

.contacts__title svg {
    width: min(4.1666666667svw, 80px);
    flex-shrink: 0;
}

@media screen and (orientation: portrait) {
    .contacts__title {
        justify-content: space-between;
        padding-bottom: min(6svw, 24px);
    }

    .contacts__title svg {
        width: min(14.1333333333svw, 53px);
    }
}

.contacts__description {
    padding-bottom: min(1.5625svw, 30px);
    line-height: 1.6;
    color: rgba(107, 58, 107, 0.8);
}

@media screen and (orientation: portrait) {
    .contacts__description {
        padding-bottom: min(6svw, 24px);
    }
}

.contacts__line {
    height: 1px;
    margin-top: min(1.0416666667svw, 20px);
}

[dir="ltr"] .contacts__line {
    background: linear-gradient(90deg, rgba(199, 143, 199, 0.2) 0%, rgba(199, 143, 199, 0.6) 50%, rgba(199, 143, 199, 0.2) 100%);
}

[dir="rtl"] .contacts__line {
    background: linear-gradient(-90deg, rgba(199, 143, 199, 0.2) 0%, rgba(199, 143, 199, 0.6) 50%, rgba(199, 143, 199, 0.2) 100%);
}

/*--------------------------------------------------------------------------------
  Form Specifics
--------------------------------------------------------------------------------*/
.contacts__form {
    padding-top: min(1.0416666667svw, 20px);
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: min(1.5625svw, 30px);
    padding: min(2.0833333333svw, 40px);
    border: 1px solid rgba(199, 143, 199, 0.1);
    box-shadow: 0 min(1.0416666667svw, 20px) min(3.125svw, 60px) rgba(199, 143, 199, 0.1);
    position: relative;
    overflow: hidden;
}

.contacts__form::before {
    content: '';
    position: absolute;
    top: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(199, 143, 199, 0.03), transparent);
    z-index: -1;
}

[dir="ltr"] .contacts__form::before {
    left: -50%;
    animation: rotate-ltr 20s linear infinite;
}

[dir="rtl"] .contacts__form::before {
    right: -50%;
    animation: rotate-rtl 20s linear infinite;
}

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

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

@media screen and (orientation: portrait) {
    .contacts__form {
        padding: min(5svw, 30px);
        margin-top: min(5svw, 20px);
        border-radius: min(4svw, 20px);
    }
}

.form__inner--cols {
    display: flex;
    flex-direction: column;
    gap: min(2.5svw, 48px);
    position: relative;
    z-index: 1;
}

.form__col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: min(1.5625svw, 30px) min(2.0833333333svw, 40px);
    position: relative;
}

.form__col::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: min(1.0416666667svw, 20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[dir="ltr"] .form__col::before {
    background: linear-gradient(145deg, rgba(199, 143, 199, 0.02), rgba(217, 179, 217, 0.02));
}

[dir="rtl"] .form__col::before {
    background: linear-gradient(-145deg, rgba(199, 143, 199, 0.02), rgba(217, 179, 217, 0.02));
}

.form__col:hover::before {
    opacity: 1;
}

@media screen and (orientation: portrait) {
    .form__col {
        grid-template-columns: 1fr;
        gap: min(5.3333333333svw, 20px);
    }
}

.form__col--message {
    grid-template-columns: 1fr;
}

.form__input--full {
    grid-column: span 2;
}

@media screen and (orientation: portrait) {
    .form__input--full {
        grid-column: span 1;
    }
}

/*--------------------------------------------------------------------------------
  Inputs, Textareas, and Controls
--------------------------------------------------------------------------------*/
input:not([type=submit]):not([type=checkbox]):not([type=radio]),
select,
textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(199, 143, 199, 0.2);
    border-radius: min(0.78125svw, 15px);
    padding: min(1.0416666667svw, 20px) min(1.25svw, 24px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: min(0.8333333333svw, 16px);
    font-weight: 400;
    color: #6b3a6b;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 min(0.2604166667svw, 5px) min(1.0416666667svw, 20px) rgba(199, 143, 199, 0.05);
    position: relative;
    overflow: hidden;
}

input:not([type=submit]):not([type=checkbox]):not([type=radio])::before,
select::before,
textarea::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

[dir="ltr"] input:not([type=submit]):not([type=checkbox]):not([type=radio])::before,
[dir="ltr"] select::before,
[dir="ltr"] textarea::before {
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(199, 143, 199, 0.1), transparent);
    transition: left 0.5s ease;
}

[dir="rtl"] input:not([type=submit]):not([type=checkbox]):not([type=radio])::before,
[dir="rtl"] select::before,
[dir="rtl"] textarea::before {
    right: -100%;
    background: linear-gradient(-90deg, transparent, rgba(199, 143, 199, 0.1), transparent);
    transition: right 0.5s ease;
}

[dir="ltr"] input:not([type=submit]):not([type=checkbox]):not([type=radio]):focus::before,
[dir="ltr"] select:focus::before,
[dir="ltr"] textarea:focus::before {
    left: 100%;
}

[dir="rtl"] input:not([type=submit]):not([type=checkbox]):not([type=radio]):focus::before,
[dir="rtl"] select:focus::before,
[dir="rtl"] textarea:focus::before {
    right: 100%;
}

input:not([type=submit]):not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
    border-color: #c78fc7;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(199, 143, 199, 0.15),
        0 min(0.5208333333svw, 10px) min(2.0833333333svw, 40px) rgba(199, 143, 199, 0.1);
    outline: none;
    transform: translateY(-2px);
}

input:not([type=submit]):not([type=checkbox]):not([type=radio]):hover,
select:hover,
textarea:hover {
    border-color: rgba(199, 143, 199, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 min(0.2604166667svw, 5px) min(1.25svw, 24px) rgba(199, 143, 199, 0.08);
}

textarea {
    min-height: min(10.4166666667svw, 200px);
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
}

textarea::placeholder {
    color: rgba(107, 58, 107, 0.5);
    font-style: italic;
}

.form__input--submit {
    justify-content: flex-end;
    margin-top: min(1.5625svw, 30px);
}

.button--long {
    width: auto;
    padding: min(0.9375svw, 18px) min(2.5svw, 48px);
    border: none;
    border-radius: min(0.78125svw, 15px);
    color: white;
    font-weight: 600;
    font-size: min(0.8333333333svw, 16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 min(0.5208333333svw, 10px) min(2.0833333333svw, 40px) rgba(199, 143, 199, 0.2);
    position: relative;
    overflow: hidden;
}

[dir="ltr"] .button--long {
    background: linear-gradient(135deg, #c78fc7 0%, #d9b3d9 100%);
}

[dir="rtl"] .button--long {
    background: linear-gradient(-135deg, #c78fc7 0%, #d9b3d9 100%);
}

.button--long::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

[dir="ltr"] .button--long::before {
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

[dir="rtl"] .button--long::before {
    right: -100%;
    background: linear-gradient(-90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.5s ease;
}

.button--long:hover {
    transform: translateY(-3px);
    box-shadow: 0 min(0.78125svw, 15px) min(3.125svw, 60px) rgba(199, 143, 199, 0.3);
}

[dir="ltr"] .button--long:hover {
    background: linear-gradient(135deg, #a66fa6 0%, #c99fc9 100%);
}

[dir="rtl"] .button--long:hover {
    background: linear-gradient(-135deg, #a66fa6 0%, #c99fc9 100%);
}

[dir="ltr"] .button--long:hover::before {
    left: 100%;
}

[dir="rtl"] .button--long:hover::before {
    right: 100%;
}

.button--long:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/*--------------------------------------------------------------------------------
  Enhanced Visual Elements & Accessibility
--------------------------------------------------------------------------------*/
.form__input {
    position: relative;
}

/* Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    width: min(1.0416666667svw, 20px);
    height: min(1.0416666667svw, 20px);
    border: 2px solid rgba(199, 143, 199, 0.3);
    border-radius: min(0.2604166667svw, 5px);
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="ltr"] input[type="checkbox"] {
    margin-right: min(0.5208333333svw, 10px);
}

[dir="rtl"] input[type="checkbox"] {
    margin-left: min(0.5208333333svw, 10px);
}

input[type="checkbox"]:checked {
    border-color: #c78fc7;
}

[dir="ltr"] input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #c78fc7, #d9b3d9);
}

[dir="rtl"] input[type="checkbox"]:checked {
    background: linear-gradient(-135deg, #c78fc7, #d9b3d9);
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    color: white;
    font-size: min(0.625svw, 12px);
    font-weight: bold;
}

[dir="ltr"] input[type="checkbox"]:checked::before {
    left: 50%;
    transform: translate(-50%, -50%);
}

[dir="rtl"] input[type="checkbox"]:checked::before {
    right: 50%;
    transform: translate(50%, -50%);
}

input[type="checkbox"]:hover {
    border-color: #c78fc7;
    transform: scale(1.05);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(199, 143, 199, 0.2);
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder,
select option:first-child {
    color: rgba(107, 58, 107, 0.5);
    font-style: italic;
}

/* Loading state for form submission */
.wpcf7-spinner {
    width: min(1.0416666667svw, 20px);
    height: min(1.0416666667svw, 20px);
    border: 2px solid rgba(199, 143, 199, 0.2);
    border-top: 2px solid #c78fc7;
    border-radius: 50%;
}

[dir="ltr"] .wpcf7-spinner {
    animation: spin-ltr 1s linear infinite;
    margin-left: min(0.5208333333svw, 10px);
}

[dir="rtl"] .wpcf7-spinner {
    animation: spin-rtl 1s linear infinite;
    margin-right: min(0.5208333333svw, 10px);
}

@keyframes spin-ltr {
    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }
}

@keyframes spin-rtl {
    0% { transform: rotate(0deg); }

    100% { transform: rotate(-360deg); }
}

@media screen and (orientation: portrait) {
    input[type="checkbox"] {
        width: min(4.2666666667svw, 18px);
        height: min(4.2666666667svw, 18px);
    }

    [dir="ltr"] input[type="checkbox"] {
        margin-right: min(2.1333333333svw, 12px);
    }

    [dir="rtl"] input[type="checkbox"] {
        margin-left: min(2.1333333333svw, 12px);
    }

        input[type="checkbox"]:checked::before {
        font-size: min(2.6666666667svw, 10px);
    }

        .wpcf7-spinner {
        width: min(4.2666666667svw, 18px);
        height: min(4.2666666667svw, 18px);
    }

        [dir="ltr"] .wpcf7-spinner {
        margin-left: min(2.1333333333svw, 12px);
    }

        [dir="rtl"] .wpcf7-spinner {
        margin-right: min(2.1333333333svw, 12px);
    }
}
