/* Kontaktní formulář */
.eobce-contact-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-top: 4px solid #2c5530;
}

.contact-form-title {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2e0a13;
    text-align: center;
}

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

/* Form row - dva sloupce vedle sebe */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-field label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-field label .required {
    color: #d32f2f;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #2c5530;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

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

/* Turnstile widget */
.turnstile-field {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

/* Submit button */
.form-submit {
    margin-top: 10px;
}

.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2c5530 0%, #177326 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.4);
}

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

.contact-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form-submit i {
    font-size: 18px;
}

/* Loading state */
.eobce-contact-form.loading .contact-form-submit {
    opacity: 0.6;
    cursor: wait;
}

.eobce-contact-form.loading .contact-form-submit::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Messages */
.form-messages {
    padding: 0;
    margin: 0;
}

.form-messages .message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    animation: slideIn 0.3s ease;
}

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

.form-messages .message.success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.form-messages .message.error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.form-messages .message.success::before {
    content: "✓";
    font-weight: bold;
    font-size: 20px;
}

.form-messages .message.error::before {
    content: "✗";
    font-weight: bold;
    font-size: 20px;
}

/* Error message pro nekonfigurovaný formulář */
.eobce-form-error {
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

.eobce-form-error a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

/* Responzivita */
@media (max-width: 768px) {
    .eobce-contact-form-wrapper {
        padding: 25px 20px;
        margin: 20px;
    }

    .contact-form-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

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

    .contact-form-submit {
        padding: 12px 24px;
        font-size: 15px;
    }
}
