/* 
* Easycity-eu.com - Contact Page Styles
* Version: 3.0 - Improved Design & Fixed Layout
*/

/* ===== CONTACT HERO SECTION ===== */
.contact-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/hero-bg.svg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-hero-content p {
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

/* ===== LIGHT EFFECTS ===== */
.light-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 8s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

.light-effect-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: 10%;
    opacity: 0.3;
    animation-delay: 0s;
}

.light-effect-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 5%;
    opacity: 0.2;
    animation-delay: 2s;
}

.light-effect-3 {
    width: 200px;
    height: 200px;
    bottom: -30px;
    right: -30px;
    opacity: 0.4;
    animation-delay: 1s;
}

.light-effect-4 {
    width: 250px;
    height: 250px;
    top: -50px;
    left: -50px;
    opacity: 0.3;
    animation-delay: 3s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* ===== MAIN CONTENT ===== */
main {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f5f8ff 100%);
    min-height: 60vh;
    padding: 6rem 0;
    position: relative;
    z-index: 100;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 200;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.03) 0%, rgba(255, 126, 95, 0.03) 100%);
    z-index: -1;
}

.contact-form::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 84, 200, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

.form-group:nth-child(3) {
    grid-column: span 2;
}

.form-group:nth-child(4) {
    grid-column: span 2;
    margin-top: 1rem;
}

.form-group label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    position: relative;
    transition: all 0.3s ease;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.form-group:focus-within label::after {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 1.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(78, 84, 200, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(51, 51, 51, 0.5);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(78, 84, 200, 0.1),
        0 8px 25px rgba(78, 84, 200, 0.15);
    transform: translateY(-2px);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(51, 51, 51, 0.3);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Enhanced Button Styles */
.contact-form button {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.8rem 3rem;
    font-size: 1.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(78, 84, 200, 0.3);
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(78, 84, 200, 0.4);
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.3);
}

/* Form Validation States */
.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--accent-color);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
    .contact-hero-content h1 {
        font-size: 4rem;
    }
    
    .contact-form {
        padding: 3rem;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .contact-hero-content h1 {
        font-size: 3.2rem;
    }
    
    .contact-hero-content p {
        font-size: 1.6rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 1.5rem;
    }
    
    .form-group:nth-child(3),
    .form-group:nth-child(4) {
        grid-column: span 1;
    }
    
    .contact-form button {
        grid-column: span 1;
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .contact-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .contact-hero-content h1 {
        font-size: 2.8rem;
    }
    
    .contact-hero-content p {
        font-size: 1.5rem;
    }
    
    main {
        padding: 4rem 0;
    }
    
    .contact-form {
        padding: 2rem;
        border-radius: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1.3rem 1.5rem;
        font-size: 1.4rem;
    }
    
    .contact-form button {
        padding: 1.5rem 2.5rem;
        font-size: 1.5rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .light-effect,
    .contact-form::after {
        animation: none;
    }
    
    .form-group input,
    .form-group textarea,
    .contact-form button {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-form {
        border: 2px solid var(--text-color);
        background: white;
    }
    
    .form-group input,
    .form-group textarea {
        border: 2px solid var(--text-color);
        background: white;
    }
}
