/* ============================================
   CONTACT PAGE STYLES
   Glass-style Contact Form
   ============================================ */

/* Contact Section */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: calc(1700 * var(--scale));
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Contact Title "Contact Us"
   Расположен над контейнером формы
   ============================================ */

.contact-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(26px, calc(60 * var(--scale)), 60px);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 100%;
    letter-spacing: 0;
    opacity: 1;
    margin: 0 0 calc(28 * var(--scale)) 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

/* ============================================
   Contact Form - Glass Container
   Полупрозрачный тёмный контейнер с размытием
   ============================================ */

.contact-form {
    width: 100%;
    max-width: calc(1820 * var(--scale));
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: calc(18 * var(--scale));
    margin: 0 auto;
    
    /* Glass effect container */
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: calc(22 * var(--scale));
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: calc(42 * var(--scale)) calc(36 * var(--scale)) calc(36 * var(--scale));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Form Fields Container */
.form-field {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Form Input Fields
   Тёмный фон, скруглённые углы, placeholder
   ============================================ */

.form-input {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(14px, calc(28 * var(--scale)), 22px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0;
    color: #FFFFFF;
    
    /* Тёмный фон поля */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: calc(12 * var(--scale));
    padding: calc(18 * var(--scale)) calc(22 * var(--scale));
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: inherit;
    font-weight: 300;
    line-height: inherit;
    letter-spacing: inherit;
}

.form-input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.4);
}

.form-input:focus::placeholder {
    opacity: 0.3;
}

/* Textarea - Message field (больше высота) */
.form-textarea {
    resize: none;
    min-height: calc(260 * var(--scale));
    max-height: calc(520 * var(--scale));
    line-height: 1.5;
}

/* Кастомная стилизация скроллбара для textarea */
.form-textarea::-webkit-scrollbar {
    width: 8px;
}

.form-textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.form-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.form-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar */
.form-textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* ============================================
   Submit Button
   Светло-голубая кнопка в правом нижнем углу
   ============================================ */

.submit-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(14px, calc(26 * var(--scale)), 18px);
    font-weight: 900;
    color: #000000;
    background: #6FC5FF;
    border: none;
    border-radius: calc(25 * var(--scale));
    padding: calc(10 * var(--scale)) calc(58 * var(--scale));
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: calc(10 * var(--scale));
    text-transform: none;
    letter-spacing: 0;
    
    /* Выравнивание по правому краю */
    align-self: flex-end;
    width: auto;
}

.submit-button:hover {
    background: #7DD4ED;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Large Desktop */
@media (min-width: 1920px) {
    .contact-form {
        width: 130%;
        max-width: 1300px;
        padding: 40px 36px;
        gap: 20px;
        border-radius: 20px;
    }
    
    .contact-title {
        font-size: 44px;
        margin-bottom: 24px;
        max-width: 100%;
    }
    
    .form-input {
        font-size: 18px;
        padding: 18px 20px;
        border-radius: 10px;
    }
    
    .form-textarea {
        min-height: 220px;
    }
    
    .submit-button {
        font-size: 16px;
        padding: 9px 50px;
        border-radius: 8px;
    }
}

/* Desktop */
@media (max-width: 1919px) and (min-width: 1200px) {
    .contact-form {
        width: 130%;
        max-width: 1170px;
        padding: 36px 22px;
        gap: 18px;
        border-radius: 18px;
    }
    
    .contact-title {
        font-size: 38px;
        margin-bottom: 22px;
        max-width: 100%;
    }
    
    .form-input {
        font-size: 16px;
        padding: 16px 18px;
        border-radius: 10px;
    }
    
    .form-textarea {
        min-height: 200px;
    }
    
    .submit-button {
        font-size: 15px;
        padding: 9px 46px;
    }
}

/* Tablet */
@media (max-width: 1199px) and (min-width: 769px) {
    .contact-form {
        width: 100%;
        max-width: 95%;
        padding: 28px 24px;
        gap: 14px;
        border-radius: 16px;
    }
    
    .contact-title {
        font-size: 34px;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .form-input {
        font-size: 15px;
        padding: 14px 16px;
        border-radius: 8px;
    }
    
    .form-textarea {
        min-height: 180px;
    }
    
    .submit-button {
        font-size: 14px;
        padding: 8px 42px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 100px 0 50px;
        min-height: 100vh;
    }
    
    .contact-content {
        padding: 0 20px;
        width: 100%;
    }
    
    .contact-title {
        font-size: 32px;
        margin-bottom: 20px;
        max-width: 100%;
        text-align: left;
    }
    
    .contact-form {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 28px 20px;
        gap: 16px;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    
    .form-input {
        font-size: 16px;
        padding: 16px 18px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .form-textarea {
        min-height: 150px;
    }
    
    .submit-button {
        font-size: 15px;
        padding: 12px 44px;
        align-self: flex-end;
        border-radius: 22px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .contact-section {
        padding: 90px 0 40px;
        min-height: 100vh;
    }
    
    .contact-content {
        padding: 0 16px;
        width: 100%;
    }
    
    .contact-title {
        font-size: 28px;
        margin-bottom: 18px;
        text-align: left;
    }
    
    .contact-form {
        width: 100%;
        padding: 24px 16px;
        gap: 14px;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .form-input {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .form-textarea {
        min-height: 130px;
    }
    
    .form-textarea::-webkit-scrollbar {
        width: 5px;
    }
    
    .submit-button {
        font-size: 15px;
        padding: 12px 36px;
        border-radius: 20px;
        width: auto;
        max-width: none;
        align-self: flex-end;
    }
}

/* Extra Small Mobile (iPhone SE, etc) */
@media (max-width: 375px) {
    .contact-section {
        padding: 80px 0 30px;
    }
    
    .contact-content {
        padding: 0 12px;
    }
    
    .contact-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .contact-form {
        padding: 20px 14px;
        gap: 12px;
        border-radius: 12px;
    }
    
    .form-input {
        font-size: 15px;
        padding: 12px 14px;
        border-radius: 8px;
    }
    
    .form-textarea {
        min-height: 110px;
    }
    
    .submit-button {
        font-size: 14px;
        padding: 11px 30px;
        border-radius: 18px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.contact-content {
    animation: fadeIn 1s ease-out;
}

.contact-title {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.contact-form {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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