/**
 * ma-lernt Anfragen Form Styles
 */

/* Full-width background wrapper */
.malernt-form-wrapper {
    background: var(--wp--preset--color--gray-light, #f8f9fa);
    padding: 3rem 1.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.malernt-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Honeypot - hidden from users */
.malernt-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Fieldset */
.malernt-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.malernt-fieldset legend {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
    width: 100%;
}

/* Grid */
.malernt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .malernt-grid {
        grid-template-columns: 1fr;
    }
}

/* Fields */
.malernt-field {
    display: flex;
    flex-direction: column;
}

.malernt-field--full {
    grid-column: 1 / -1;
}

.malernt-field--info {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.625rem;
}

.malernt-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.malernt-field .required {
    color: #ef4444;
}

.malernt-field input,
.malernt-field select,
.malernt-field textarea {
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.malernt-field input:focus,
.malernt-field select:focus,
.malernt-field textarea:focus {
    outline: none;
    border-color: #fedb43;
    box-shadow: 0 0 0 3px rgba(254, 219, 67, 0.2);
}

.malernt-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Price badge */
.malernt-price-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(254, 219, 67, 0.2);
    color: #1e3a5f;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* Notices */
.malernt-notice {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.malernt-notice p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
}

.malernt-notice strong {
    display: block;
    margin-bottom: 0.25rem;
}

.malernt-notice--info {
    background: rgba(254, 219, 67, 0.1);
    border: 1px solid rgba(254, 219, 67, 0.3);
    color: #1e3a5f;
}

.malernt-notice--privacy {
    background: #f9fafb;
    color: #6b7280;
}

.malernt-notice--privacy a {
    color: #1e3a5f;
}

.malernt-notice--privacy a:hover {
    text-decoration: underline;
}

/* Submit */
.malernt-submit {
    margin-top: 1.5rem;
}

.malernt-button {
    width: 100%;
    padding: 1rem 2rem;
    background: #fedb43;
    color: #1e3a5f;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.malernt-button:hover {
    background: #e8c80b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.malernt-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 219, 67, 0.4);
}

.malernt-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Contact hint */
.malernt-contact-hint {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

.malernt-contact-hint a {
    color: #1e3a5f;
}

.malernt-contact-hint a:hover {
    text-decoration: underline;
}

/* Messages */
.malernt-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.malernt-message--success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.malernt-message--error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Captcha */
.malernt-captcha {
    margin-bottom: 1rem;
}

/* Optional label */
.malernt-field .optional {
    color: #9ca3af;
    font-weight: 400;
}
