/* public/assets/css/modules/contact.css */

.contact-hero {
    background: radial-gradient(circle at 10% 20%, rgb(240, 253, 244) 0%, rgb(255, 255, 255) 90%);
    padding-bottom: 5rem;
    padding-top: 3rem; /* Menší padding, protože body má hlavní padding */
}

.contact-hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.contact-hero-copy,
.contact-hero-summary {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 20px 45px -34px rgba(15, 23, 42, 0.35);
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(0, 155, 58, 0.08);
    color: var(--fl-green-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-badge-light {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.quick-contact-card {
    display: block;
    text-decoration: none;
    border-radius: 24px;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 38px -34px rgba(15, 23, 42, 0.4);
}

.quick-contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(0, 155, 58, 0.1);
    color: var(--fl-green-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.quick-contact-label {
    color: #64748b;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.quick-contact-value {
    color: var(--fl-text-dark);
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.quick-contact-note {
    color: #64748b;
    line-height: 1.5;
}

.contact-card {
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 26px 54px -42px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.contact-form-shell {
    position: relative;
    overflow: visible;
}

.contact-form-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(0, 155, 58, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.04), transparent 32%);
    pointer-events: none;
}

.contact-form-layout,
.contact-form-shell form {
    position: relative;
    z-index: 1;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.78fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-form-title {
    color: var(--fl-text-dark);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 0.75rem;
}

.contact-form-copy {
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    max-width: 720px;
}

.contact-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-side-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-radius: 20px;
    padding: 1rem 1.1rem;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 26px -26px rgba(15, 23, 42, 0.28);
}

.contact-side-note-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(0, 155, 58, 0.1);
    color: var(--fl-green-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-side-note-title {
    color: var(--fl-text-dark);
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.contact-side-note-copy {
    color: #64748b;
    line-height: 1.6;
}

.contact-side-cards {
    display: grid;
    gap: 0.9rem;
}

.quick-contact-card-side .quick-contact-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
}

.quick-contact-card-side .quick-contact-value {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.quick-contact-card-side .quick-contact-label {
    margin-bottom: 0.35rem;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--fl-green-primary);
}

/* Captcha Slider */
.captcha-container { margin-top: 20px; user-select: none; }
.captcha-track {
    width: 100%; height: 50px; background: #e2e8f0; border-radius: 50px;
    position: relative; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    display: flex; align-items: center;
}
.captcha-text {
    position: absolute; width: 100%; text-align: center;
    font-size: 0.85rem; font-weight: 700; color: #94a3b8; text-transform: uppercase;
    letter-spacing: 1px; pointer-events: none; z-index: 1; transition: opacity 0.3s;
}
.captcha-handle {
    width: 50px; height: 50px; background: var(--fl-green-primary); border-radius: 50%;
    position: absolute; left: 0; top: 0; cursor: grab; z-index: 2;
    display: flex; align-items: center; justify-content: center; color: white;
    font-size: 1.2rem; box-shadow: 0 4px 6px rgba(0,155,58,0.3); transition: transform 0.1s;
}
.captcha-handle:active { cursor: grabbing; transform: scale(1.1); }
.captcha-success-overlay {
    position: absolute; left: 0; top: 0; height: 100%; width: 0%;
    background: #dcfce7; transition: width 0.1s;
}
.captcha-target {
    position: absolute; right: 5px; top: 5px; width: 40px; height: 40px;
    border: 2px dashed #cbd5e1; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: #94a3b8; font-weight: bold;
}
.captcha-done .captcha-handle { right: 0; left: auto; background: #166534; cursor: default; transform: none; }
.captcha-done .captcha-track { background: #dcfce7; border: 1px solid #bbf7d0; }
.captcha-done .captcha-text { opacity: 0; }
.captcha-done .captcha-success-overlay { width: 100% !important; }

/* Utilities specific for contact page */
.card-hover-green {
    border: 1px solid #e2e8f0;
}

.contact-link-green {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-link-green:hover {
    color: var(--fl-green-primary);
    text-decoration: underline;
}

.green-icon-box {
    width: 36px; height: 36px;
    background: rgba(0, 155, 58, 0.1);
    color: var(--fl-green-primary);
    display: flex; align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.info-separator { opacity: 0.1; margin: 1rem 0; }

.hover-green:hover { color: var(--fl-green-primary) !important; }

.form-control.bg-light:focus, 
.form-select.bg-light:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 155, 58, 0.1);
    border: 1px solid var(--fl-green-primary) !important;
}

.contact-groups {
    padding-top: 0.5rem;
}

.contact-directory-head {
    margin-bottom: 2rem;
}

.contact-directory-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-group-block {
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 28px 54px -42px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.contact-group-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.6rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background:
        radial-gradient(circle at top right, rgba(0, 155, 58, 0.06), transparent 42%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.contact-group-head-copy {
    min-width: 0;
}

.contact-group-title {
    color: var(--fl-text-dark);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.contact-group-title + .contact-group-copy {
    margin-top: 0.35rem;
}

.contact-group-copy {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    max-width: 52rem;
}

.contact-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    padding: 1.25rem 1.6rem 1.6rem;
}

.contact-entry-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.28);
}

.contact-entry-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-entry-name {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--fl-text-dark);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.25;
}

.contact-entry-person {
    margin: 0;
    color: #334155;
    font-weight: 700;
    font-size: 0.92rem;
}

.contact-entry-role {
    margin: 0.15rem 0 0;
    color: var(--fl-green-primary);
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1.45;
}

.contact-entry-channels {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
}

.contact-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
    color: var(--fl-text-dark);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.35;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-entry-link span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-entry-link-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 155, 58, 0.1);
    color: var(--fl-green-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.contact-entry-link:hover {
    background: rgba(0, 155, 58, 0.08);
    border-color: rgba(0, 155, 58, 0.24);
    color: var(--fl-green-primary);
}

.contact-entry-link--phone {
    font-size: 0.92rem;
}

.contact-entry-hours {
    cursor: default;
    color: #64748b;
}

.contact-entry-link.contact-entry-hours:hover {
    background: #f8fafc;
    border-color: rgba(226, 232, 240, 0.95);
    color: #64748b;
}

.contact-entry-note {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(226, 232, 240, 0.95);
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--fl-text-dark);
}

.section-copy {
    max-width: 760px;
    color: #64748b;
    line-height: 1.75;
}

.contact-group-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(0, 155, 58, 0.1);
    color: var(--fl-green-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 155, 58, 0.08);
}

@media (max-width: 991.98px) {
    .contact-hero-panel,
    .contact-form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .contact-hero-copy,
    .contact-hero-summary {
        padding: 1.5rem;
    }

    .contact-form-shell {
        padding: 1.5rem !important;
    }

    .contact-group-head,
    .contact-group-grid {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .contact-entry-link span:last-child {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

.topic-select {
    position: relative;
}

.topic-select.is-open {
    z-index: 30;
}

.topic-select-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topic-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.topic-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.85rem 1rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    text-align: left;
}

.topic-select-btn:focus-visible,
.topic-select.is-open .topic-select-btn {
    border-color: var(--fl-green-primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 155, 58, 0.1);
}

.topic-select-current {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.topic-select-current i,
.topic-select-option i {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f7ee;
    color: var(--fl-green-dark);
    flex-shrink: 0;
}

.topic-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-select-chevron {
    color: var(--fl-green-dark);
    flex-shrink: 0;
}

.topic-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    max-height: 280px;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    overflow: auto;
    border: 1px solid rgba(0, 155, 58, 0.16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45);
}

.topic-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #1e293b;
    font-weight: 700;
    text-align: left;
}

.topic-select-option:hover,
.topic-select-option.is-selected {
    background: #e8f7ee;
    color: #134e2a;
}