/* =============================================================================
   SECTIONS/KONTAKT.CSS — blok „Konzultace" (vizitka + formulář)
   -----------------------------------------------------------------------------
   Vizitka je na desktopu lepivá (position: sticky). Funguje díky tomu,
   že <body> má overflow-x: clip místo hidden — hidden lepivost ruší.
   ========================================================================== */


/* Kontaktní formulář s vizitkou */
.contact-form-section {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* Vizitka */
.business-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: sticky;
    top: 100px;
}

.business-card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-blue);
}

.business-card-content {
    text-align: center;
}

.business-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.business-card-greeting {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.business-card-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 15px;
}

.business-card-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.business-card-email,
.business-card-phone {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.business-card-email:hover,
.business-card-phone:hover {
    color: var(--primary-blue);
}

/* Formulář */
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-card h3 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card > p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group label .material-icons {
    font-size: 20px;
    color: #3498db;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%233498db' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 40px;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal !important;
    color: #555 !important;
    font-size: 14px !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3498db;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   OZNÁMENÍ O ZPRACOVÁNÍ ÚDAJŮ
   -----------------------------------------------------------------------------
   Nahradilo zaškrtávátko se souhlasem. Není to pole formuláře, takže je
   text drobnější a tišší než popisky nad vstupy — má informovat, ne si
   říkat o pozornost. Zaškrtávátko výš (.checkbox-group) tu zůstává kvůli
   ostatním formulářům na webu.
   -------------------------------------------------------------------------- */

.form-gdpr-note {
    margin-top: 4px;
    margin-bottom: 0;
}

.form-gdpr-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.form-gdpr-note a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.form-gdpr-note a:hover { text-decoration: underline; }


.submit-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

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

.submit-button .material-icons {
    font-size: 22px;
}

.form-info-text {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 12px;
    margin-bottom: 0;
    font-style: normal;
}

/* Vybraný balíček z ceníku */
.form-group--package[hidden] {
    display: none;
}

.form-group--package label {
    justify-content: flex-start;
}

.package-clear {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.package-clear:hover {
    color: #e74c3c;
}

.package-display {
    padding: 12px 16px;
    border: 2px solid var(--primary-blue, #0066cc);
    border-radius: 8px;
    background: #eef5fb;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.package-price {
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
}

/* Výzva k doplnění zprávy */
.form-message-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--primary-blue, #0066cc);
}

.form-message-hint[hidden] {
    display: none;
}

.form-message-hint .material-icons {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Modální okno */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.close-modal {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 15px 20px;
    background: white;
    z-index: 1;
    border-radius: 0 16px 0 0;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
}

#orderModalContent {
    padding: 30px;
    padding-top: 10px;
}

/* Responsivní design */
@media (max-width: 992px) {
    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .business-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .business-card {
        padding: 30px;
    }
    
    .business-card-image {
        width: 120px;
        height: 120px;
    }
    
    .business-card-greeting {
        font-size: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* Loading state pro formulář */
.contact-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Honeypot pole - musí být skryté */
.hp-field {
    position: absolute !important;
    left: -5000px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.submit-button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* -----------------------------------------------------------------------------
   TERMÍN ÚVODNÍ KONZULTACE (volné časy z portálu)
   -------------------------------------------------------------------------- */
.intro-slot[hidden],
.intro-picker[hidden],
.intro-chosen[hidden] { display: none; }

.intro-question {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 2px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* Ikona stejně jako u popisků ostatních polí */
.intro-question .material-icons {
    font-size: 20px;
    color: #3498db;
}

.intro-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group .intro-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: normal;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group .intro-option:hover { border-color: #3498db; }

.form-group .intro-option:has(input:checked) {
    border-color: #3498db;
    background: #eef5fb;
}

/* Skutečný přepínač zůstává pro klávesnici a čtečky, vidět je jen kroužek */
.form-group .intro-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.intro-radio {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid #c3ccd6;
    background: #ffffff;
    box-sizing: border-box;
    transition: border 0.15s ease;
}

.intro-option input:checked + .intro-radio { border: 6px solid #3498db; }
.intro-option input:focus-visible + .intro-radio { box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3); }

.intro-text strong {
    display: block;
    color: #2c3e50;
    font-size: 15px;
}

.intro-text small {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 2px;
}

.intro-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 99px;
    background: #e8f6ee;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    vertical-align: 2px;
}

.intro-missing[hidden] { display: none; }

.intro-missing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fdf1e6;
    color: #c0631a;
    font-weight: 600;
    font-size: 14px;
}

.intro-missing .material-icons { font-size: 20px; }

.intro-picker { margin-top: 6px; }

.intro-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
}

.intro-days button {
    flex: none;
    width: 58px;
    padding: 7px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    color: #2c3e50;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.intro-days button span { font-size: 12px; color: #666; font-weight: 600; }
.intro-days button b { font-size: 19px; }
.intro-days button small { font-size: 11px; color: #94a3b8; }
.intro-days button:hover { border-color: #3498db; }
.intro-days button.on { border-color: #3498db; background: #eef5fb; }
.intro-days button.on b { color: #2980b9; }

.intro-dayname {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin: 8px 0 10px;
}

.intro-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.intro-times button {
    height: 42px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.intro-times button:hover { border-color: #3498db; color: #2980b9; }
.intro-times button.on { background: #3498db; border-color: #3498db; color: #ffffff; }

.intro-chosen {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #e8f6ee;
    color: #15803d;
    font-weight: 600;
    font-size: 14px;
}

.intro-chosen .material-icons { font-size: 20px; }

/* Pás dnů se na úzkém displeji posouvá do strany a nerozšiřuje stránku.
   Mřížka a flex sloupce mají jinak min-width: auto, takže by se natáhly
   podle nejširšího obsahu; min-width: 0 je drží v šířce obrazovky. */
.contact-form-section > *,
.contact-form > *,
.form-group,
.intro-slot,
.intro-picker {
    min-width: 0;
}

.intro-days {
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.intro-days button { scroll-snap-align: start; }

/* Na mobilu nápověda, že pás pokračuje: jemné ztmavení pravého okraje */
@media (max-width: 768px) {
    .intro-days {
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
        padding-right: 24px;
    }
}
