/* =========================================
   1. БАЗОВІ НАЛАШТУВАННЯ ТА ШРИФТИ
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400&family=Lexend+Zetta:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.contact-body {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   2. ШАПКА (HEADER)
   ========================================= */
.top-header {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
}


.logo{
    font-family: 'Libre Caslon Display', serif; 
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 29px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}
.step-counter {
    font-family: 'Lexend Zetta', sans-serif;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.step-counter {
    border-bottom: 1px solid #808080;
    padding-bottom: 5px;
}

.logo:hover, .step-counter:hover {
    opacity: 0.6;
}

/* =========================================
   3. КОНТЕЙНЕР ТА ТЕКСТИ
   ========================================= */
.contact-container {
    position: relative; 
    width: 100%;
    max-width: 600px;
    padding: 100px 40px 40px;
    animation: fadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.skills-title {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 22px;
    letter-spacing: 4px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.step-desc {
    font-size: 14px;
    color: #808080;
    text-align: center;
    margin-bottom: 50px;
}

/* =========================================
   4. ІНТЕРАКТИВНА ФОРМА (Мінімалізм)
   ========================================= */
.hire-form {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.input-group {
    position: relative;
    width: 100%;
    transition: opacity 0.4s ease; 
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    background: transparent; /* Жодного сірого фону */
    border: none;
    border-bottom: 1px solid #4d4d4d;
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px; 
    padding: 15px 0px; /* Прибрали бокові відступи */
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

/* Легка зміна кольору лінії при наведенні */
.input-group input:hover,
.input-group textarea:hover,
.input-group select:hover {
    background: transparent;
    border-bottom: 1px solid #808080;
}

/* Зміна кольору лінії при фокусі (без світіння) */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    background: transparent;
    border-bottom: 1px solid #ffffff;
    box-shadow: none; 
}

/* Плаваючі підписи */
.input-group label {
    position: absolute;
    top: 18px;
    left: 0;
    color: #808080;
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Від'їзд тексту вгору */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label {
    top: -20px;
    left: 0;
    font-size: 9px;
    color: #ffffff;
    letter-spacing: 3px;
}

/* Select */
.input-group select {
    cursor: pointer;
    appearance: none;
}
.input-group select option {
    background-color: #050505;
    color: #ffffff;
    padding: 10px;
}
.input-group select:invalid {
    color: transparent; 
}

/* =========================================
   5. КНОПКА ВІДПРАВКИ
   ========================================= */
.submit-btn {
    position: relative;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 20px;
    margin-top: 10px;
    cursor: pointer;
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; 
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1; 
}

.submit-btn:hover {
    color: #000000;
}
.submit-btn:hover::before {
    left: 0; 
}

.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* =========================================
   6. ПОВІДОМЛЕННЯ ПРО УСПІХ (Друк)
   ========================================= */
.success-msg {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    line-height: 2;
    text-transform: uppercase;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 16px;
    background-color: #ffffff;
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.error-msg {
    display: none;
    color: #d84b4b; 
    font-family: 'Lexend Zetta', sans-serif; 
    font-size: 9px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 20px;
    letter-spacing: 3px;
    animation: fadeInError 0.4s ease forwards;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.char-counter {
    position: absolute;
    top: 100%; 
    right: 0;
    margin-top: 5px;
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    color: #4d4d4d; 
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group textarea:focus ~ .char-counter {
    color: #808080;
}

.char-counter.limit-reached {
    color: #d84b4b !important; 
}

/* =========================================
   CUSTOM CYBER SCROLLBAR
   ========================================= */

/* Загальна ширина смуги прокрутки */
::-webkit-scrollbar {
    width: 6px; /* Робимо її дуже тонкою та елегантною */
}

/* Трек (фон, по якому їздить повзунок) */
::-webkit-scrollbar-track {
    background: #030303; /* Глибокий чорний колір */
    border-left: 1px solid rgba(255, 255, 255, 0.05); /* Тонка ледь помітна лінія розділення */
}

/* Сам повзунок (який ми тягнемо) */
::-webkit-scrollbar-thumb {
    background: #333333; /* Темно-сірий колір у спокійному стані */
    border-radius: 0px; /* Ніяких заокруглень! Строгі, різкі системні кути */
    border-left: 1px solid #000000; /* Мікро-відступ від краю */
}

/* Повзунок при наведенні мишки */
::-webkit-scrollbar-thumb:hover {
    background: #ffffff; /* Спалахує чистим білим кольором, коли берешся за нього */
}
.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: #4d4d4d;
    z-index: 1000;
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: #808080;
}

.lang-btn.active {
    color: #ffffff;
    pointer-events: none; /* Блокуємо клік по активній мові */
}

.lang-divider {
    color: #333333;
}

@font-face {
    font-family: 'KyivTypeVar';

    src: url('fonts/KyivTypeSans-VarGX.ttf') format('truetype');
    
    font-weight: 100 900; 
    font-style: normal;
    font-display: swap; 
}
body.ua-lang .btn-text{
    font-family: 'KyivTypeVar', sans-serif !important;
    font-weight: 600;
    letter-spacing: 5px;
}
body.ua-lang .step-desc{
    font-family: 'KyivTypeVar', sans-serif !important;
    font-weight: 400;
    font-size: 12px;
}
body.ua-lang .skills-title{
    font-family: 'KyivTypeVar', sans-serif !important;
    font-weight: 700;
    letter-spacing: 5.5px;
    font-size: 29px;
}
body.ua-lang #name, body.ua-lang #email, body.ua-lang #altContact, body.ua-lang #message, body.ua-lang #service{
    font-family: 'KyivTypeVar', sans-serif !important;
    font-weight: 500;
    letter-spacing: 3px;
}
body.ua-lang .step-counter{
    font-family: 'KyivTypeVar', sans-serif !important;
    font-weight: 400;
    letter-spacing: 1.5px;
}
/* =========================================
   7. ПОВЗУНОК БЮДЖЕТУ
   ========================================= */
.budget-wrapper {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    color: #808080;
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.budget-value {
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 400;
}


.input-group input[type="range"].custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px; 
    
    background: #4d4d4d; 
    border: none;
    border-bottom: none;
    padding: 0; 
    margin: 10px 0; 
    
    outline: none;
    transition: background 0.3s;
}


.input-group input[type="range"].custom-slider:hover {
    background: #808080;
}


.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #050505; 
    border: 1px solid #ffffff; 
    border-radius: 0; 
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: #ffffff; 
}

.custom-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #050505;
    border: 1px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.custom-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    background: #ffffff;
}

body.ua-lang .budget-header span:first-child {
    font-family: 'KyivTypeVar', sans-serif !important;
    font-weight: 500;
    letter-spacing: 3px;
}