/* Explain: Styles for the contact section with a luxurious navy and gold theme. */
.contact-lux {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 6%, rgba(201, 162, 39, 0.26), transparent 28rem),
        radial-gradient(circle at 6% 94%, rgba(197, 160, 89, 0.18), transparent 24rem),
        linear-gradient(160deg, #0F1C2E 0%, #14273E 55%, #0F1C2E 100%);
    color: #F4F1E8;
}

.contact-lux__title-accent {
    color: var(--gold-light);
}

.contact-lux__lead,
.contact-lux__note {
    color: rgba(244, 241, 232, 0.74);
}

.contact-lux__item,
.contact-lux__info {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.9rem;
    border-radius: 1.2rem;
    padding: 0.95rem 1.05rem;
}

.contact-lux__item {
    border: 1px solid rgba(197, 160, 89, 0.45);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.contact-lux__item:hover {
    border-color: rgba(227, 203, 139, 0.95);
    background: rgba(201, 162, 39, 0.16);
    box-shadow: 0 18px 40px rgba(4, 12, 22, 0.34);
    transform: translateY(-2px);
}

.contact-lux__item:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.contact-lux__info {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.contact-lux__ico {
    display: inline-grid;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid rgba(197, 160, 89, 0.55);
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.16);
    color: var(--gold-light);
    font-size: 0.9rem;
}

.contact-lux__label {
    display: block;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.contact-lux__value {
    display: block;
    margin-top: 0.25rem;
    color: rgba(244, 241, 232, 0.74);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.contact-lux__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2rem;
    background: #ffffff;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    color: var(--text-color);
    box-shadow: 0 34px 80px rgba(6, 15, 26, 0.42);
}

.contact-lux__panel::before,
.contact-lux__success::before {
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark) 0%, #E9D79B 50%, var(--gold-dark) 100%);
    content: "";
    pointer-events: none;
}

.contact-lux__panel.is-hidden {
    display: none;
}

.contact-lux__panel fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-field {
    display: block;
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 280ms ease, box-shadow 280ms ease;
}

.contact-field::placeholder {
    color: #94A0B2;
}

.contact-field:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.contact-field--area {
    min-height: 8.5rem;
    border-radius: 1.4rem;
    padding: 1rem 1.2rem;
    resize: vertical;
}

.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.contact-chip {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27, 58, 100, 0.18);
    border-radius: 999px;
    background: #F6F5EF;
    padding: 0.55rem 1.05rem;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.contact-chip:hover {
    border-color: rgba(197, 160, 89, 0.8);
    background: #FBF6EA;
}

.contact-chip:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.contact-chip.is-selected {
    border-color: #C5A059;
    background: #C5A059;
    color: #17263A;
    box-shadow: 0 12px 26px rgba(197, 160, 89, 0.35);
}

.contact-lux__submit {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(162, 130, 31, 0.65);
    border-radius: 999px;
    background: linear-gradient(135deg, #C5A059 0%, #E9D79B 46%, #B8912F 100%);
    padding: 0.85rem 1.6rem;
    color: #17263A;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(197, 160, 89, 0.34);
    transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
}

.contact-lux__submit::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 66%);
    background-position: 140% 0;
    background-size: 260% 100%;
    content: "";
    pointer-events: none;
    transition: background-position 780ms ease;
}

.contact-lux__submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 24px 48px rgba(197, 160, 89, 0.42);
    transform: translateY(-2px);
}

.contact-lux__submit:hover::after {
    background-position: -40% 0;
}

.contact-lux__submit:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.contact-lux__submit:disabled {
    cursor: progress;
    filter: saturate(0.72);
    transform: none;
}

.contact-lux__success {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 24rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2rem;
    background: #ffffff;
    padding: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    box-shadow: 0 34px 80px rgba(6, 15, 26, 0.42);
}

.contact-lux__success.is-visible {
    display: flex;
}

.contact-lux__check {
    display: inline-grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border: 2px solid #C5A059;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 30%, rgba(227, 203, 139, 0.48), rgba(197, 160, 89, 0.12) 74%);
    color: #A2821F;
    font-size: 1.9rem;
    box-shadow: 0 0 0 10px rgba(197, 160, 89, 0.12);
}

.contact-lux__success-title {
    margin: 0;
    color: #0F1C2E;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

.contact-lux__success-text {
    max-width: 30rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-lux__again {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(197, 160, 89, 0.6);
    border-radius: 999px;
    background: #FBF6EA;
    padding: 0.6rem 1.25rem;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}

.contact-lux__again:hover {
    border-color: #C5A059;
    background: #ffffff;
}

.contact-lux__again:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (max-width: 479px) {
    .contact-chip {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-lux__item,
    .contact-field,
    .contact-chip,
    .contact-lux__submit,
    .contact-lux__submit::after,
    .contact-lux__again {
        transition: none;
    }

    .contact-lux__item:hover,
    .contact-lux__submit:hover {
        transform: none;
    }
}