/* Alemon Contact Form Styles - Matching Website Design */

/* Skrytí reCAPTCHA badge (Google povoluje pokud je disclosure) */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}

.alemon-contact-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.alemon-cf-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 1.5rem;
    color: #00D9FF;
}

.alemon-contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.alemon-cf-response {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alemon-cf-response.success {
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid #00D9FF;
    color: #00D9FF;
}

.alemon-cf-response.error {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #FF6B6B;
    color: #FF6B6B;
}

.alemon-cf-field {
    margin-bottom: 1.5rem;
}

.alemon-cf-field label {
    display: block;
    font-weight: 600;
    color: #00D9FF;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.alemon-cf-field .required {
    color: #FF6B6B;
}

/* DEFAULT STATE: Černé pozadí + Bílý text */
.alemon-cf-field input[type="text"],
.alemon-cf-field input[type="email"],
.alemon-cf-field textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.9) !important;
    color: #F0F0F0 !important;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #F0F0F0 !important;
    box-shadow: none !important;
}

/* FOCUS STATE: Bílé pozadí + Černý text */
.alemon-cf-field input[type="text"]:focus,
.alemon-cf-field input[type="text"].alemon-cf-focused,
.alemon-cf-field input[type="email"]:focus,
.alemon-cf-field input[type="email"].alemon-cf-focused,
.alemon-cf-field textarea:focus,
.alemon-cf-field textarea.alemon-cf-focused {
    outline: none !important;
    border-color: #00D9FF !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1A1A2E !important;
    -webkit-text-fill-color: #1A1A2E !important;
}

/* FILLED STATE: Bílé pozadí + Černý text (JavaScript class) */
.alemon-cf-field input[type="text"].alemon-cf-filled,
.alemon-cf-field input[type="email"].alemon-cf-filled,
.alemon-cf-field textarea.alemon-cf-filled {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1A1A2E !important;
    -webkit-text-fill-color: #1A1A2E !important;
    border-color: rgba(0, 217, 255, 0.5) !important;
}

/* CHROME AUTOFILL OVERRIDE - Nejsilnější pravidla */
.alemon-cf-field input[type="text"]:-webkit-autofill,
.alemon-cf-field input[type="email"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.98) inset !important;
    -webkit-text-fill-color: #1A1A2E !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    background-clip: content-box !important;
    border-color: rgba(0, 217, 255, 0.5) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.alemon-cf-field input[type="text"]:-webkit-autofill:focus,
.alemon-cf-field input[type="email"]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.98) inset !important;
    -webkit-text-fill-color: #1A1A2E !important;
    border-color: #00D9FF !important;
}

/* Placeholder styles */
.alemon-cf-field input[type="text"]::placeholder,
.alemon-cf-field input[type="email"]::placeholder,
.alemon-cf-field textarea::placeholder {
    color: rgba(240, 240, 240, 0.6) !important;
    opacity: 1 !important;
}

/* Placeholder při focus/filled */
.alemon-cf-field input[type="text"]:focus::placeholder,
.alemon-cf-field input[type="email"]:focus::placeholder,
.alemon-cf-field textarea:focus::placeholder,
.alemon-cf-field input[type="text"].alemon-cf-filled::placeholder,
.alemon-cf-field input[type="email"].alemon-cf-filled::placeholder,
.alemon-cf-field textarea.alemon-cf-filled::placeholder {
    color: rgba(26, 26, 46, 0.4) !important;
}

.alemon-cf-field textarea {
    resize: vertical;
    min-height: 150px;
}

.alemon-cf-submit {
    margin-top: 2rem;
    text-align: left;
    position: relative;
}

.alemon-cf-button {
    background: linear-gradient(135deg, #00D9FF, #7B68EE);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    width: 100%;
    justify-content: center;
}

.alemon-cf-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.6);
}

.alemon-cf-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alemon-cf-button .button-loader {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

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

.alemon-cf-recaptcha-notice {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(240, 240, 240, 0.6);
    text-align: center;
    line-height: 1.4;
}

.alemon-cf-recaptcha-notice a {
    color: #00D9FF;
    text-decoration: none;
    transition: opacity 0.3s;
}

.alemon-cf-recaptcha-notice a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Skrytí reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Plugin wrapper in contact section */
.alemon-plugin-form-wrapper {
    width: 100%;
}

.alemon-plugin-form-wrapper .alemon-contact-form-wrapper {
    padding: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .alemon-cf-title {
        font-size: 1.5rem;
    }
    
    .alemon-cf-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .alemon-cf-field input[type="text"],
    .alemon-cf-field input[type="email"],
    .alemon-cf-field textarea {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    .alemon-cf-field textarea {
        min-height: 120px;
    }
}

/* WordPress admin overrides */
.wp-admin .alemon-contact-form-wrapper {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.wp-admin .alemon-cf-field input[type="text"],
.wp-admin .alemon-cf-field input[type="email"],
.wp-admin .alemon-cf-field textarea {
    background: white !important;
    color: #333 !important;
    border-color: #ddd !important;
    -webkit-text-fill-color: #333 !important;
}

.wp-admin .alemon-cf-field input[type="text"]:focus,
.wp-admin .alemon-cf-field input[type="email"]:focus,
.wp-admin .alemon-cf-field textarea:focus {
    background: white !important;
    border-color: #00D9FF !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

.wp-admin .alemon-cf-field input[type="text"].alemon-cf-filled,
.wp-admin .alemon-cf-field input[type="email"].alemon-cf-filled,
.wp-admin .alemon-cf-field textarea.alemon-cf-filled {
    background: white !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}




