/* Styly pro kontaktní formulář */

/* Error stav pro input fieldy */
.medium-input.error,
.medium-textarea.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Error stav pro checkbox */
.terms-condition.error {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Success a error hlášky */
.form-results {
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

.form-results.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-results.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

/* Loading stav tlačítka */
.submit.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.submit.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Placeholder pro required fieldy */
.required::placeholder {
    color: #999;
}

.required.error::placeholder {
    color: #dc3545;
}
