/*
 * Formularz kontaktowy (shortcode [metalowy_contact_form]).
 * Wygląd odtworzony z produkcji: biała karta z ramką i cieniem,
 * pola pełnej szerokości, pomarańczowy przycisk wysyłki.
 */

.mv-contact {
    --mv-contact-orange: #ffd460;
    --mv-contact-orange-hover: #ffe9ae;
    --mv-contact-border: #303030;
    font-size: 16px;
    color: #1e1e1e;
}

.mv-contact__box {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    padding: 32px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.mv-contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mv-contact__form[hidden],
.mv-contact__success[hidden],
.mv-contact__file-list[hidden] {
    display: none;
}

.mv-contact__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mv-contact__label {
    font-size: 18px;
    font-weight: 700;
}

.mv-contact__req {
    color: #dc2626;
}

.mv-contact__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid var(--mv-contact-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    color: inherit;
    background: #fff;
}

.mv-contact__textarea {
    resize: vertical;
    min-height: 140px;
}

.mv-contact__counter {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.mv-contact__counter--over {
    color: #dc2626;
}

.mv-contact__hint {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.mv-contact__error {
    margin: 0;
    font-size: 14px;
    color: #dc2626;
}

.mv-contact__error:empty {
    display: none;
}

/* ---------- Załączniki ---------- */
.mv-contact__file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mv-contact__file-input {
    display: none;
}

.mv-contact__file-status {
    font-size: 15px;
    color: #4b5563;
}

.mv-contact__file-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.mv-contact__file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    margin: 0;
}

.mv-contact__file-name {
    overflow-wrap: anywhere;
    font-size: 15px;
}

.mv-contact__file-remove {
    flex: none;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.mv-contact__file-remove:hover {
    color: #991b1b;
}

/* ---------- Zgoda ---------- */
.mv-contact__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.mv-contact__consent input {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: rgba(48, 48, 48, 0.7);
}

/* ---------- Przyciski ---------- */
.mv-contact__btn {
    border: 1px solid var(--mv-contact-border);
    border-radius: 8px;
    background: #fff;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mv-contact__btn--primary {
    background: var(--mv-contact-orange);
}

.mv-contact__btn--primary:hover {
    background: var(--mv-contact-orange-hover);
}

.mv-contact__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mv-contact__btn--file {
    padding: 10px 16px;
    font-size: 15px;
}

.mv-contact__submit {
    align-self: flex-start;
}

/* ---------- Ekran sukcesu ---------- */
.mv-contact__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    text-align: center;
}

.mv-contact__success-title {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
    color: #16a34a;
}

.mv-contact__success-text {
    margin: 0;
    color: #4b5563;
}
