:root {
    --brand: #7B292B;
    --brand-light: #A33A3C;
    --brand-dark: #5A1E20;
    --bg-dark: #080c14;
    --text-muted-light: rgba(255,255,255,.6);
    --text-dim-light: rgba(255,255,255,.35);
    --border-light: rgba(255,255,255,.08);
    --success: #00D4AA;
}

.contact, .contact * { box-sizing: border-box; }
.contact .c { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.contact .sec-tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact .glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); transform: translateZ(0); }
.contact .glow-brand { background: radial-gradient(circle, rgba(123,41,43,.12) 0%, transparent 70%); }
.contact .btn-pri {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand);
    color: #f7f7f5;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
    border: none;
    cursor: pointer;
}
.contact .btn-pri:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(123,41,43,.35); }
.contact .btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.contact .btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #f7f7f5;
    border-radius: 50%;
    animation: contactSpin .8s linear infinite;
    left: 50%;
    top: 50%;
    margin-left: -9px;
    margin-top: -9px;
}
@keyframes contactSpin { to { transform: rotate(360deg); } }

.contact {
    position: relative;
    z-index: 40;
    background: var(--bg-dark);
    padding: 120px 0;
    overflow: hidden;
    color: #f7f7f5;
}
.contact .glow-brand { width: 700px; height: 700px; top: -200px; right: -200px; opacity: .15; }
.contact-layout { display: flex; gap: 64px; }
.contact-left { width: 45%; }
.contact-left .sec-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--brand-light);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.contact-left h2 {
    font-size: clamp(32px,4vw,48px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 40px;
    color: #f7f7f5;
}
.contact-adv { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.contact-adv-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(123,41,43,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-light);
    font-size: 18px;
    flex-shrink: 0;
}
.contact-adv-text { font-size: 15px; color: rgba(255,255,255,.8); }
.contact-info-block { margin-top: 48px; }
.contact-info-item { margin-bottom: 20px; }
.contact-info-label { font-size: 11px; color: var(--text-dim-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact-info-value { font-size: 14px; color: var(--text-muted-light); }
.contact-info-value a { color: inherit; text-decoration: none; transition: color .3s; }
.contact-info-value a:hover { color: #f7f7f5; }
.contact-right { width: 55%; }
.contact-form { background: rgba(255,255,255,.03); border: 1px solid var(--border-light); border-radius: 24px; padding: 40px; }
.contact-form-group { margin-bottom: 20px; }
.contact-form-label { display: flex; align-items: baseline; gap: 4px; font-size: 12px; font-weight: 500; color: var(--text-dim-light); margin-bottom: 8px; }
.contact-form-required { color: var(--brand-light); font-size: 1em; font-weight: 700; line-height: 1; }
.contact-form-input {
    width: 100%;
    height: 52px;
    background: rgba(255,255,255,.04);
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0 16px;
    color: #f7f7f5;
    font-size: 15px;
    font-family: inherit;
    transition: all .3s;
}
.contact-form-input:focus { outline: none; border-bottom-color: var(--brand-light); box-shadow: 0 4px 20px rgba(123,41,43,.1); }
.contact-form-input::placeholder { color: rgba(255,255,255,.2); }
select.contact-form-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: rgba(255,255,255,.06);
    color: #f7f7f5;
    padding-right: 40px;
}
select.contact-form-input:hover { background-color: rgba(255,255,255,.09); }
select.contact-form-input:focus { background-color: rgba(255,255,255,.08); border-bottom-color: var(--brand-light); }
select.contact-form-input option { background: #1e2230; color: rgba(255,255,255,.9); font-size: 14px; padding: 10px 16px; }
select.contact-form-input option:checked { background: var(--brand); color: #f7f7f5; }
select.contact-form-input option:hover { background: var(--brand-light); color: #f7f7f5; }
select.contact-form-input option:disabled { color: rgba(255,255,255,.25); background: #1e2230; }
select.contact-form-input optgroup { background: #1e2230; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
textarea.contact-form-input { height: 120px; padding: 16px; resize: vertical; }
.contact-form-submit {
    width: 100%;
    height: 52px;
    background: var(--brand);
    color: #f7f7f5;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    font-family: inherit;
}
.contact-form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(123,41,43,.3); }
.contact-form-submit:active { transform: scale(.98); }
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    animation: contactFadeInUp .6s ease;
}
.form-success.show { display: flex; }
.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,212,170,.1);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--success);
}
.form-success h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: #f7f7f5; }
.form-success p { font-size: 14px; color: var(--text-muted-light); margin: 0 0 8px; max-width: 360px; }
.form-success .success-detail { font-size: 13px; color: var(--text-dim-light); margin-bottom: 24px; background: rgba(0,212,170,.05); padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(0,212,170,.15); }
.form-success .success-detail a { color: var(--success); text-decoration: none; }
@keyframes contactFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.lead-magnet {
    background: linear-gradient(135deg,rgba(123,41,43,.08) 0%,rgba(123,41,43,.02) 100%);
    border: 1px solid rgba(123,41,43,.15);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    gap: 24px;
    align-items: center;
}
.lead-magnet-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(123,41,43,.1); display: flex; align-items: center; justify-content: center; color: var(--brand-light); flex-shrink: 0; }
.lead-magnet-content { min-width: 0; }
.lead-magnet-content h4 { font-size: 16px; font-weight: 600; color: #f7f7f5; margin: 0 0 6px; }
.lead-magnet-content p { font-size: 13px; color: var(--text-muted-light); margin: 0 0 12px; }
.lead-magnet-form { display: flex; gap: 10px; }
.lead-magnet-form input { flex: 1; min-width: 0; height: 44px; background: rgba(255,255,255,.05); border: 1px solid var(--border-light); border-radius: 8px; padding: 0 16px; color: #f7f7f5; font-size: 14px; }
.lead-magnet-form input::placeholder { color: rgba(255,255,255,.25); }
.lead-magnet-form button { height: 44px; padding: 0 20px; background: var(--brand); color: #f7f7f5; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .3s; white-space: nowrap; }
.lead-magnet-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(123,41,43,.3); }
.lead-magnet-success { display: none; font-size: 13px; color: var(--success); margin-top: 8px; }
.lead-magnet-success.show { display: block; }

.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-wrapper select { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.custom-select-trigger {
    width: 100%;
    height: 52px;
    background: rgba(255,255,255,.04);
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0 40px 0 16px;
    color: #f7f7f5;
    font-size: 15px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all .3s;
    position: relative;
}
.custom-select-trigger:hover { background: rgba(255,255,255,.07); }
.custom-select-trigger.active { border-bottom-color: var(--brand-light); box-shadow: 0 4px 20px rgba(123,41,43,.1); }
.custom-select-trigger svg { width: 10px; height: 6px; color: rgba(255,255,255,.5); transition: transform .3s; flex-shrink: 0; }
.custom-select-trigger.active svg { transform: rotate(180deg); }
.custom-select-trigger .placeholder { color: rgba(255,255,255,.2); }
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1e2230;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    transform: translateY(-10px) scale(.96);
    pointer-events: none;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    max-height: 280px;
    overflow-y: auto;
}
.custom-select-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.custom-option { padding: 12px 16px; border-radius: 8px; font-size: 14px; color: rgba(255,255,255,.85); cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: space-between; }
.custom-option:hover { background: rgba(123,41,43,.25); color: #f7f7f5; }
.custom-option.selected { background: var(--brand); color: #f7f7f5; }
.custom-option.selected::after { content: '✓'; font-size: 12px; opacity: .9; }
.custom-select-dropdown::-webkit-scrollbar { width: 4px; }
.custom-select-dropdown::-webkit-scrollbar-track { background: transparent; }
.custom-select-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

@media (max-width:1024px) {
    .contact .c { padding: 0 28px; }
    .contact-layout { flex-direction: column; gap: 48px; }
    .contact-left, .contact-right { width: 100%; }
}
@media (max-width:768px) {
    .contact .c { padding: 0 20px; }
    .contact-layout { gap: 40px; }
    .contact-form { padding: 24px; }
    .lead-magnet { flex-direction: column; align-items: flex-start; }
    .lead-magnet-form { width: 100%; flex-direction: column; }
    .lead-magnet-form input, .lead-magnet-form button { width: 100%; }
}
@media (hover:none) and (pointer:coarse) {
    .contact .contact-form-input { background-color: rgba(255,255,255,.04) !important; }
    .contact .contact-form-submit, .contact .lead-magnet-form button { background: var(--brand) !important; }
}
@media (prefers-reduced-motion:reduce) {
    .contact *, .contact *::before, .contact *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
