/* AI Právník - Doplňkové styly */

/* Základní layout a kontejner */
.ai-lawyer-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 20px 0;
}

.ai-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header sekce */
.ai-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    position: relative;
}

.ai-scales-icon {
    font-size: 48px;
    color: #5347c2;
}

.ai-title-group h1 {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 48px;
    margin: 0;
    color: #000;
    text-align: left;
}

.ai-subtitle {
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 16px;
    color: #666;
    margin: 8px 0 0 0;
    text-align: left;
}

/* Price badge - opravdová cenovka */
.price-badge {
    position: absolute;
    top: -15px;
    right: -25px;
    background: #ffffff;
    color: #444444;
    padding: 10px 16px;
    border: 1px solid #666666;
    border-radius: 3px;
    box-shadow: 2px 2px 8px rgba( 0, 0, 0, 0.2 );
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    transform: translateY( -50% ) rotate( 8deg );
    z-index: 10;
    position: relative;
}

.price-badge::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border: 1px solid #666666;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba( 0, 0, 0, 0.3 );
}

.price-badge .price-amount {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 1px;
    color: #e63946;
}

.price-badge .price-unit {
    display: block;
    font-size: 11px;
    font-weight: normal;
    color: #555555;
}

/* Help link */
.ai-help-link-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ai-help-link {
    display: none;
    font-size: 14px;
    color: #5347c2;
    text-decoration: none;
    font-family: 'Graphik', Arial, sans-serif;
}

.ai-help-link:hover {
    text-decoration: underline;
}

/* Search sekce */
.ai-search-section {
    margin-bottom: 40px;
}

.ai-search-form {
    display: flex;
    gap: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.ai-search-textarea {
    flex: 1;
    padding: 18px 20px 22px 20px;
    border: none;
    outline: none;
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 0;
}

.ai-search-textarea::placeholder {
    color: #999;
    font-family: 'Graphik', Arial, sans-serif;
}

.ai-search-button {
    background: #dc3545;
    border: none;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: background-color 0.2s;
}

.ai-search-button:hover {
    background: #c82333;
}
.ai-search-button.paid {
    background: #28a745; /* Zelená barva pro zaplacený stav */
}
.ai-search-button.paid:hover {
    background: #218838; /* Tmavší zelená při hover */
}
.ai-search-button.processing {
    background: #fd7e14; /* Oranžová barva pro processing stav */
}
.ai-search-button.processing:hover {
    background: #e8650c; /* Tmavší oranžová při hover */
}
.ai-search-button:disabled {
    background: #6c757d !important; /* Šedá barva pro disabled stav */
    cursor: not-allowed !important;
    opacity: 0.7;
}
.ai-search-button:disabled:hover {
    background: #6c757d !important; /* Zachovat šedou i při hover */
}

.ai-search-icon {
    width: 24px;
    height: 24px;
}

.processing-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-input-hint {
    margin-top: 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.text-save-success {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    font-family: 'Graphik', Arial, sans-serif;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-5px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

/* Chat rozhraní pro výpis minulých dotazů */
.recent-questions-section {
    margin-bottom: 40px;
    background: transparent;
}

.recent-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.recent-title {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 18px;
    color: #333;
    margin: 0;
    text-align: center;
}

/* Carousel indicators (dots) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 20px; /* Reserve space even when empty */
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.carousel-indicator:hover {
    background: #bbb;
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: #5347c2;
    transform: scale(1.3);
}

.carousel-indicator.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(83, 71, 194, 0.3);
}

/* Current position display */
.carousel-position {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    font-family: 'Graphik', Arial, sans-serif;
    white-space: nowrap;
}

.carousel-container {
    position: relative;
    padding: 0 60px; /* Prostor pro avatary */
}

.carousel-prev-btn,
.carousel-next-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-prev-btn:hover,
.carousel-next-btn:hover {
    background: #e9ecef;
    border-color: #bbb;
    color: #333;
}

.carousel-prev-btn:disabled,
.carousel-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.carousel-prev-btn:disabled:hover,
.carousel-next-btn:disabled:hover {
    background: #f8f9fa;
    border-color: #ddd;
    color: #666;
}

.carousel-content {
    display: block; /* Změna z flex na block pro vertikální layout */
    padding: 0;
    overflow: visible;
}

/* Chat bubliny - základní styly */
.carousel-item {
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    display: none; /* Skryté dokud nejsou aktivní */
    transition: opacity 0.3s ease;
}

.carousel-item.active {
    opacity: 1;
    display: block;
}

.carousel-item .carousel-question,
.carousel-item .carousel-answer {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    margin-bottom: 8px;
    word-wrap: break-word;
    position: relative;
}

/* Dotaz uživatele - vlevo, bílá bublina */
.carousel-item .carousel-question {
    background: #ffffff;
    color: #333;
    float: left;
    clear: both;
    margin-left: 0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.1 );
    border: 1px solid #e1e1e1;
}

/* Odpověď AI - vpravo, světle zelená bublina s tmavou hlavičkou */
.carousel-item .carousel-answer {
    background: #F0FFF4;
    color: #2d3748;
    float: right;
    clear: both;
    margin-right: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.1 );
    max-width: 95%; 
    border: 1px solid #C6F6D5;
    position: relative;
    overflow: hidden;
}

/* Carousel answer header - now generated in JS instead of ::before */
.carousel-answer .ai-response-header {
    background: #F0FFF4;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: -12px -18px 15px -18px;
    border-bottom: 1px solid #C6F6D5;
}

.carousel-answer .ai-response-header h2 {
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 16px;
    color: #000;
    margin: 0;
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.carousel-answer .ai-response-icon svg {
    width: 20px;
    height: 20px;
}

.carousel-answer .ai-confidence-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-answer .ai-confidence-label {
    font-size: 14px;
    color: #000;
    font-family: 'Graphik', Arial, sans-serif;
}

.carousel-answer .ai-confidence-bar {
    width: 100px;
    height: 8px;
    background: #C6F6D5;
    border-radius: 4px;
    overflow: hidden;
}

.carousel-answer .confidence-fill {
    height: 100%;
    background: #38a169;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.carousel-answer .confidence-value {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    font-family: 'Graphik Med', Arial, sans-serif;
}

.carousel-answer .meta-validation-toggle {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.carousel-answer .meta-validation-toggle:hover {
    background: rgba(56, 161, 105, 0.1);
}

/* Avatary jako skutečné elementy v JS */
.chat-avatar {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    overflow: hidden;
}

.chat-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-avatar.user {
    left: -180px;
    top: -50px;
}

.chat-avatar.lawyer {
    right: -180px;
    top: 80px;
}

/* Clearfix pro floating elementy */
.carousel-item::after {
    content: "";
    display: table;
    clear: both;
}

.carousel-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Loading a error stavy pro chat */
.carousel-loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Stejné stylování uvnitř chat bublin jako u normální odpovědi */
.carousel-answer {
    font-family: 'Graphik', Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
}

.carousel-answer h2 {
    font-family: 'Graphik', Arial, sans-serif;
    color: #2d3748;
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.carousel-answer h3 {
    font-family: 'Graphik', Arial, sans-serif;
    color: #2d3748;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.carousel-answer h2:first-child,
.carousel-answer h3:first-child {
    margin-top: 0; /* První nadpis bez horního marginu */
}

.carousel-answer p {
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 400;
}

.carousel-answer p:last-child {
    margin-bottom: 0;
}

.carousel-answer ul,
.carousel-answer ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.carousel-answer li {
    margin-bottom: 8px;
    color: #2d3748; /* Tmavý text pro světle zelené pozadí */
}

.carousel-answer em {
    font-style: italic;
    color: #555; /* Tmavší text pro čitelnost */
    background: #C6F6D5; /* Stejné světle zelené pozadí */
    padding: 10px;
    display: block;
    border-left: 4px solid #38a169;
    margin: 15px 0;
    border-radius: 4px;
}

/* Odkazy v odpovědích - včetně citací paragrafů */
.carousel-answer a {
    color: #38a169;
    text-decoration: none;
    font-weight: 400;
}

.carousel-answer a:hover {
    color: #2d8653;
    text-decoration: underline;
}

/* Speciální styling pro citace paragrafů */
.carousel-answer a.citation {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.carousel-answer a.citation:hover {
    background: #dee2e6;
    color: #343a40;
    text-decoration: none;
}

/* Metadata v odpovědích - zápatí s důvěryhodností */
.carousel-answer .response-metadata {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #9AE6B4;
    text-align: center;
}

.carousel-answer .response-metadata small {
    color: #666;
    font-size: 12px;
}

.question-example {
    display: none; /* Odstraní původní question-example styly */
}

/* Loading sekce */
.loading-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.1 );
    margin-bottom: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate( 0deg ); }
    100% { transform: rotate( 360deg ); }
}

.loading-text {
    font-family: 'Graphik Med', Arial, sans-serif;
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

.loading-steps {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.ai-step {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.ai-step.active {
    color: #dc3545;
    opacity: 1;
    font-weight: 500;
}

.ai-step small {
    color: #999;
    font-size: 12px;
}

/* Response sekce */
.ai-response-section {
    background: #F0FFF4;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.1 );
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #C6F6D5;
}

.ai-response-header {
    background: #F0FFF4;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-response-icon svg {
    width: 20px;
    height: 20px;
}

.ai-response-header h2 {
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 18px;
    color: #38a169;
    margin: 0;
    flex: 1;
    text-align: left;
    font-weight: 600;
}

.ai-confidence-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-confidence-label {
    font-size: 14px;
    color: #38a169;
    font-family: 'Graphik', Arial, sans-serif;
}

.ai-confidence-bar {
    width: 100px;
    height: 8px;
    background: #C6F6D5;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: #38a169;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.confidence-value {
    font-size: 14px;
    font-weight: 500;
    color: #38a169;
    font-family: 'Graphik Med', Arial, sans-serif;
}

.meta-validation-toggle {
    background: none;
    border: none;
    color: #38a169;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.meta-validation-toggle:hover {
    background: rgba(56, 161, 105, 0.1);
}

.response-content {
    font-family: 'Graphik', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
}

.response-content h3 {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    color: #2d3748;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 18px;
}

.response-content p {
    margin-bottom: 16px;
}

.response-content ul,
.response-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.response-content li {
    margin-bottom: 8px;
}

.response-content em {
    font-style: italic;
    color: #555;
    background: #f0f8f0;
    padding: 15px;
    display: block;
    border-left: 4px solid #38a169;
    margin: 20px 0;
}

.response-content .response-metadata {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #b8e6b8;
}

.response-content .response-metadata small {
    color: #666;
    font-size: 12px;
}

/* Refund link */
.refund-link {
    text-align: center;
    margin-bottom: 40px;
}

.refund-link a {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
}

.refund-link a:hover {
    text-decoration: underline;
}

/* Status box - starý styl zachován pro kompatibilitu */
.ai-status-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    color: #856404;
}

.ai-status-box.hidden {
    display: none;
}

/* Nový platební status - ve stejném řádku jako "Jak to funguje" */
.payment-processing-status {
    display: flex;
    align-items: center;
}

.payment-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-refresh-icon {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #dc6c42;
    flex-shrink: 0;
}

.payment-refresh-icon:hover {
    background: rgba(220, 108, 66, 0.1);
}

.payment-status-text {
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.payment-status-text.processing {
    color: #dc6c42; /* Oranžová barva místo modré */
}

.payment-status-text.paid {
    color: #28a745; /* Zelená barva */
}

.payment-retry-link {
    color: #dc6c42;
    text-decoration: underline;
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    margin-left: 15px;
}

.payment-retry-link:hover {
    color: #b85935;
    text-decoration: underline;
}

.payment-actions-line {
    text-align: center;
}

.payment-new-link {
    color: #dc6c42;
    text-decoration: underline;
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    margin-left: 30px;
}

.payment-new-link:hover {
    color: #b85935;
    text-decoration: underline;
}

/* Modální okna */
.help-modal,
.meta-validation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba( 0, 0, 0, 0.5 );
}

.modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba( 0, 0, 0, 0.15 );
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 20px;
    color: #333;
    margin: 0;
    text-align: left;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #666;
}

.modal-body {
    padding: 20px;
    font-family: 'Graphik', Arial, sans-serif;
    line-height: 1.6;
}

.modal-body h2 {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 18px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.modal-body ol,
.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 6px;
}

.price-info {
    background: #d4edda;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 15px 0;
}

/* Responsive design */
@media ( max-width: 768px ) {
    .ai-container {
        padding: 0 15px;
    }
    
    .ai-logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-badge {
        position: static;
        transform: none;
        margin-top: 15px;
        align-self: center;
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .price-badge .price-amount {
        font-size: 16px;
    }
    
    .ai-scales-icon {
        font-size: 36px;
    }
    
    .ai-title-group h1 {
        font-size: 32px;
    }
    
    .ai-search-form {
        flex-direction: column;
    }
    
    .ai-search-button {
        min-height: 50px;
    }
    
    .carousel-container {
        padding: 0 15px;
    }
    
    .recent-header {
        gap: 15px; /* Menší mezera na mobilu */
    }
    
    .recent-title {
        font-size: 16px; /* Menší nadpis na mobilu */
    }
    
    .carousel-indicators {
        gap: 6px; /* Menší mezera mezi puntíky */
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-position {
        font-size: 11px;
        margin-left: 8px;
    }
    
    .carousel-prev-btn,
    .carousel-next-btn {
        width: 32px;
        height: 32px;
    }
    
    .carousel-content {
        /* Zachová vertikální layout */
    }
    
    .carousel-item .carousel-question {
        max-width: 85%; /* Širší bubliny na mobilu */
    }
    
    .carousel-item .carousel-answer {
        max-width: 90%; /* Ještě širší odpovědi na mobilu */
    }
    
    .chat-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .chat-avatar.user {
        left: -35px;
    }
    
    .chat-avatar.lawyer {
        right: -35px;
    }
    
    .ai-response-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ai-confidence-indicator {
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media ( max-width: 480px ) {
    .ai-title-group h1 {
        font-size: 28px;
    }
    
    .ai-search-textarea {
        padding: 15px;
        min-height: 100px;
    }
    
    .ai-search-button {
        padding: 15px;
    }
    
    .response-content {
        padding: 20px;
    }
    
    .loading-section {
        padding: 30px 15px;
    }
}

/* Payment confirmation modal */
.payment-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100; /* Higher than help modal */
}

.payment-info {
    text-align: center;
}

.payment-icon {
    margin-bottom: 20px;
}

.payment-icon svg {
    color: #5347c2;
}

.payment-info h4 {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.payment-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.payment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.price-display {
    margin-bottom: 8px;
}

.price-amount {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 32px;
    color: #5347c2;
    font-weight: 600;
}

.price-currency {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 20px;
    color: #5347c2;
    margin-left: 5px;
}

.price-description {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.payment-process {
    text-align: left;
    margin: 20px 0;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #5347c2;
}

.payment-process h5 {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

.payment-process ol {
    margin: 0;
    padding-left: 20px;
}

.payment-process li {
    color: #555;
    margin-bottom: 6px;
    line-height: 1.5;
}

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-cancel,
.btn-pay {
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-width: 120px;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #bbb;
}

.btn-pay {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-pay:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Responsive design for payment modal */
@media ( max-width: 768px ) {
    .payment-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-pay {
        width: 100%;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .price-currency {
        font-size: 18px;
    }
    
    .payment-process {
        padding: 15px;
    }
}

/* Informační sekce */
.ai-info-section {
    background: white;
    padding: 60px 0;
    margin-top: 60px;
    width: 100vw;
    margin-left: calc( -50vw + 50% );
}

.ai-info-section .ai-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-title {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.info-steps {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.info-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.info-step:not(:last-child):after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 40px;
    font-size: 24px;
    color: #5347c2;
    font-weight: bold;
}

.step-number {
    background: #5347c2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 15px;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.info-step h3 {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.info-step p {
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive design pro informační sekci */
@media ( max-width: 768px ) {
    .ai-info-section {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .info-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .info-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .info-step:not(:last-child):after {
        content: '↓';
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: -25px;
    }
    
    .info-step h3 {
        font-size: 18px;
    }
    
    .info-step p {
        font-size: 15px;
    }
}

@media ( max-width: 480px ) {
    .ai-info-section {
        padding: 30px 0;
    }
    
    .info-title {
        font-size: 22px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .step-icon {
        font-size: 28px;
    }
}

/* FAQ sekce */
.faq-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 0;
    width: 100vw;
    margin-left: calc( -50vw + 50% );
}

.faq-section .ai-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-title {
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.faq-container {
    max-width: 100%;
}

.faq-item {
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Neue Haas Display Medium', Arial, sans-serif;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #5347c2;
}

.faq-question span {
    flex: 1;
    margin-right: 15px;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate( 45deg );
    color: #5347c2;
}

.faq-answer {
    padding: 0 0 20px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 10px 0 20px 0;
}

.faq-answer p {
    font-family: 'Graphik', Arial, sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive design pro FAQ sekci */
@media ( max-width: 768px ) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 18px 0;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
}

@media ( max-width: 480px ) {
    .faq-section {
        padding: 30px 0;
    }
    
    .faq-title {
        font-size: 22px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 16px 0;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
}
