/* Contact Page Styles */

/* Hero Section */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8rem 0 6rem;
    color: var(--background-color);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--background-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.contact-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.contact-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--background-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field input,
.input-field textarea,
.select-field select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1.5px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition-speed);
    background: var(--background-color);
    color: var(--text-color);
}

.input-field label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
    color: var(--nav-text-color);
    transition: var(--transition-speed);
    pointer-events: none;
}

.input-field input:focus,
.input-field textarea:focus,
.select-field select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label,
.input-field textarea:focus + label,
.input-field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Textarea Specific */
.input-field textarea {
    min-height: 120px;
    resize: vertical;
}

.input-field textarea + label {
    top: 1rem;
    transform: none;
}

/* Select Field */
.select-field {
    position: relative;
    margin-bottom: 1.5rem; /* Přidaný margin pro mobilní zobrazení */
}

.select-field select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
    color: var(--nav-text-color); /* Přidaná barva pro lepší viditelnost */
}

.select-field select:not(:valid) {
    color: var(--nav-text-color);
}

.select-field select:valid {
    color: var(--text-color);
}

.select-field::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0; /* Přidaný margin */
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-group label {
    color: var(--nav-text-color);
    font-size: 0.9rem;
}

/* reCAPTCHA Container */
.recaptcha-group {
    margin: 1.5rem 0;
    background: #f9fafb; /* Světlé pozadí pro lepší viditelnost */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-speed);
    margin-top: 2rem;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.submit-btn svg {
    transition: transform 0.3s ease;
    stroke: var(--background-color); /* Přidaná barva pro ikonu */
    stroke-width: 2;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* Contact Info */
.contact-info {
    padding: 2rem;
}

.info-box {
    background: linear-gradient(135deg,
        rgba(37,99,235,0.05) 0%,
        rgba(96,165,250,0.1) 100%);
    padding: 2rem;
    border-radius: 20px;
    height: 100%;
}

.info-box h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.info-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 1; /* Zajištění viditelnosti ikon */
}

.info-content h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.info-content p {
    color: var(--nav-text-color);
}

/* Social Links in Contact Info */
.contact-info .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-info .social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-speed);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-info .social-link i {
    font-size: 1.2rem;
    opacity: 1; /* Zajištění viditelnosti ikon */
}

.contact-info .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-hero {
        padding: 6rem 0 4rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    /* Vylepšené rozestupy pro select boxy na mobilu */
    .select-field {
        margin-bottom: 2rem;
    }

    .form-row .select-field:last-child {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Další úpravy pro velmi malé obrazovky */
    .select-field select {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}