/* ============================================ */
/* PLOVOUCÍ CTA TLAČÍTKO - Mám zájem o rodovou knihu */
/* ============================================ */

.cta-float-button {
    position: fixed;
    bottom: calc(2rem + 50px);
    right: 2rem;
    z-index: 999;
    background: linear-gradient(135deg, #D4AF37, #C19A2E);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(212, 175, 55, 0.4),
            0 0 20px rgba(212, 175, 55, 0.3),
            0 0 40px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 30px rgba(212, 175, 55, 0.6),
            0 0 40px rgba(212, 175, 55, 0.5),
            0 0 80px rgba(212, 175, 55, 0.4);
    }
}

.cta-float-button:hover {
    transform: translateY(-3px);
    animation: none;
    box-shadow: 
        0 6px 30px rgba(212, 175, 55, 0.6),
        0 0 50px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #C19A2E, #B08A1E);
}

.cta-float-button i {
    font-size: 1.2rem;
}

/* Responzivní zobrazení */
@media (max-width: 768px) {
    .cta-float-button {
        bottom: calc(1rem + 50px);
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .cta-float-button:hover {
        transform: translateY(-3px);
    }
    
    .cta-float-button span {
        display: none; /* Skrýt text na mobilu */
    }
    
    .cta-float-button i {
        font-size: 1.5rem;
        margin: 0;
    }
}

/* ============================================ */
/* KONTAKTNÍ FORMULÁŘ MODAL */
/* ============================================ */

.cta-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.cta-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

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

.cta-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.cta-modal-header {
    background: linear-gradient(135deg, #5a4a3a, #3d3127);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-modal-title i {
    font-size: 1.75rem;
}

.cta-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cta-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.cta-modal-body {
    padding: 2rem;
}

.cta-intro {
    color: #5a4a3a;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* ============================================ */
/* KONTAKTNÍ FORMULÁŘ */
/* ============================================ */

.cta-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.cta-form-group label {
    font-weight: 600;
    color: #3d3127;
    font-size: 0.95rem;
}

.cta-form-group input,
.cta-form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0d5c7;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-form-group input:focus,
.cta-form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.cta-form-group small {
    color: #8b7355;
    font-size: 0.875rem;
}

.cta-form-required {
    color: #D4AF37;
}

.cta-form-submit {
    background: linear-gradient(135deg, #D4AF37, #C19A2E);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #C19A2E, #B08A1E);
}

.cta-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cta-btn-text,
.cta-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn-loading {
    display: none;
}

.cta-form-submit:disabled .cta-btn-text {
    display: none;
}

.cta-form-submit:disabled .cta-btn-loading {
    display: inline-flex;
}

/* Výsledek odeslání */
.cta-form-result {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.cta-form-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.cta-form-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* GDPR info */
.cta-gdpr {
    font-size: 0.875rem;
    color: #8b7355;
    margin-top: 1rem;
    text-align: center;
    line-height: 1.5;
}

.cta-gdpr a {
    color: #D4AF37;
    text-decoration: none;
}

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

/* Validace */
.cta-form-group input:invalid:not(:placeholder-shown),
.cta-form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.cta-form-group input:valid:not(:placeholder-shown),
.cta-form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    .cta-modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .cta-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .cta-modal-title {
        font-size: 1.25rem;
    }
    
    .cta-modal-body {
        padding: 1.5rem;
    }
}
