.contact-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.contact-container h1 {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #A3B18A;
}

.contact-container .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-card {
    background-color: var(--color-light-gray);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease; /* Odstraněno transform přizvednutí */
    box-sizing: border-box;
}

.contact-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Zůstal jen jemnější stín na hover */
}

.icon-wrapper {
    background-color: var(--color-sage);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper img {
    width: 2.5rem;
    height: 2.5rem;
}

.contact-card h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-card .subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
    flex-grow: 1;
    margin-top: 0;
}

/* Úprava odkazu a elegantního oddělovače */
.contact-link {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-hunter-green);
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
    position: relative;
    padding-top: 1.5rem; /* Větší prostor nad číslem */
    margin-top: 1.5rem; /* Větší prostor pod popiskem */
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; /* Krátká elegantní čárka místo dlouhé linky */
    height: 3px; /* O něco tlustší */
    background-color: var(--color-sage);
    border-radius: 3px; /* Zaoblené okraje */
}

.contact-link:hover {
    color: var(--color-fern-green);
}

/* =========================================
   FORM SECTION (Standalone Styles)
   ========================================= */
#formular {
    scroll-margin-top: 100px;
}

.page-section {
    padding: 60px 20px;
    background-color: #f9fafb;
    padding-bottom: 10rem;
}

.page-section2 {
    padding: 60px 20px;
    padding-bottom: 10rem;
}

.form-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Main Card Wrapper */
.form-box {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #f1f3f3;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

/* Header inside the form */
.form-intro {
    margin-bottom: 2rem;
}

.form-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #131615;
    margin: 0 0 0.5rem 0;
}

.form-intro p {
    color: #6e7c7b;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Layout */
.form-element {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

/* Labels & Inputs */
.form-label, 
.form-label-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #131615;
    display: block;
}

.form-input, 
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dfe2e2;
    border-radius: 8px;
    background-color: #ffffff;
    color: #131615;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #386661;
    box-shadow: 0 0 0 1px #386661;
}

.form-textarea {
    height: 8rem;
    resize: none;
}

/* Custom Checkboxes (Chips) */
.form-interest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.form-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.form-chip-label {
    cursor: pointer;
}

.form-chip-content {
    padding: 0.5rem 1rem;
    border: 1px solid #dfe2e2;
    border-radius: 8px;
    background-color: #ffffff;
    color: #6e7c7b;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    user-select: none;
}

.form-chip-label:hover .form-chip-content {
    background-color: #f7f7f7;
}

.form-chip-label input:checked + .form-chip-content {
    background-color: rgba(56, 102, 97, 0.1);
    border-color: #386661;
    color: #386661;
}

/* File Upload Area */
.form-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 8rem;
    width: 100%;
    border: 2px dashed #dfe2e2;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.form-file-upload:hover {
    background-color: #f9fafb;
    border-color: #386661;
}

.form-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-upload-icon {
    font-size: 1.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.form-file-upload:hover .form-upload-icon {
    color: #386661;
}

.form-upload-text {
    font-size: 0.875rem;
    color: #6e7c7b;
    margin: 0 0 0.25rem 0;
}

.form-upload-text strong {
    color: #386661;
}

.form-upload-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* Footer & Button */
.form-footer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-fern-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease; /* Zrušeno transform: translateY(-1px) */
    width: 100%;
}

.form-btn-submit:hover {
    background-color: #2d524d;
    box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.15); /* Zvýrazní se jen stín */
}

.form-icon-sm {
    font-size: 1.25rem;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.4;
    margin: 0;
}

/* =========================================
   ROZDĚLENÝ LAYOUT FORMULÁŘE (TEXT + MAPA)
   ========================================= */

.form-split-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 25px;
}

.form-split-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-split-right {
    flex: 1;
    display: flex;
    z-index: 2;
    flex-direction: column;
}

.mapa-container {
    width: 100%;
    height: 350px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.mapa-info-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #64748b;
    padding: 8px 12px;
    background-color: #f1f5f9;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mapa-info-text.active {
    background-color: #e2f0e8;
    color: #1e293b;
    font-weight: 500;
}

/* =========================================
   MEDIA QUERIES (RESPONZIVITA)
   ========================================= */

@media (min-width: 768px) {
    .form-btn-submit {
        width: auto;
        align-self: flex-start;
    }
}

/* Tablety a menší monitory */
@media (max-width: 992px) {
    .form-split-layout {
        flex-direction: column;
        gap: 25px;
    }

    .form-split-left, .form-split-right {
        width: 100%;
    }
}

/* Mobilní telefony */
@media (max-width: 768px) {
    
    /* Horní část s kontakty */
    .contact-container {
        padding: 0 1.5rem;
    }
    
    .contact-container h1 {
        font-size: 2.2rem;
    }

    .contact-container .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    /* Formulářová část */
    .page-section, .page-section2 {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .form-box {
        padding: 1.5rem; 
    }

    .form-intro h2 {
        font-size: 1.3rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Speciální úpravy pro mapu na mobilu */
    .mapa-container {
        height: 250px !important; 
        pointer-events: auto; 
    }

    .leaflet-container {
        touch-action: pan-x pan-y;
    }

    .mapa-info-text {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .form-interest-chips {
        gap: 0.5rem;
    }

    .form-chip-content {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .form-btn-submit {
        width: 100%;
        padding: 1rem;
    }
}

/* =========================================
   TISK (PRINT)
   ========================================= */

@media print {
    body {
        font-family: Georgia, serif;
        font-size: 11pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
        padding-top: 0;
    }

    * {
        color: #000 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .main-header,
    .main-footer,
    .icon-wrapper {
        display: none;
    }

    .page-section {
        padding: 0;
        margin: 0;
    }

    .contact-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    h1 {
        font-size: 18pt;
    }

    .contact-grid {
        display: block;
    }

    .contact-card {
        margin-bottom: 25px;
        page-break-inside: avoid;
    }

    .contact-link::before {
        display: none;
    }
}