/*
 * Atelier MG – kontaktný formulár
 * Farby je možné prepísať v Cassiopeia user.css cez premenné uvedené nižšie.
 */
.ateliermg-contact {
    --amg-contact-max-width: 100%;
    --amg-contact-text: #212529;
    --amg-contact-muted: #6c757d;
    --amg-contact-field-bg: #ffffff;
    --amg-contact-field-border: #b8b8b8;
    --amg-contact-field-focus: #444444;
    --amg-contact-button-bg: #212529;
    --amg-contact-button-text: #ffffff;
    --amg-contact-button-hover: #000000;
    --amg-contact-success-bg: #edf7ef;
    --amg-contact-success-border: #4f8a5b;
    --amg-contact-error-bg: #fff1f1;
    --amg-contact-error-border: #b94a48;

    width: 100%;
    max-width: var(--amg-contact-max-width);
    color: var(--amg-contact-text);
}

.ateliermg-contact *,
.ateliermg-contact *::before,
.ateliermg-contact *::after {
    box-sizing: border-box;
}

.ateliermg-contact__intro {
    margin-bottom: 1.25rem;
}

.ateliermg-contact__form {
    display: grid;
    gap: 1.1rem;
}

.ateliermg-contact__field {
    display: grid;
    gap: 0.4rem;
}

.ateliermg-contact__field label {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}

.ateliermg-contact__field label span {
    color: var(--amg-contact-muted);
}

.ateliermg-contact__field input,
.ateliermg-contact__field textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.85rem;
    color: var(--amg-contact-text);
    background: var(--amg-contact-field-bg);
    border: 1px solid var(--amg-contact-field-border);
    border-radius: 0;
    font: inherit;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ateliermg-contact__field textarea {
    min-height: 10rem;
    resize: vertical;
}

.ateliermg-contact__field input:focus,
.ateliermg-contact__field textarea:focus {
    border-color: var(--amg-contact-field-focus);
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgb(33 37 41 / 12%);
}

.ateliermg-contact__actions {
    display: flex;
}

.ateliermg-contact__actions.is-left {
    justify-content: flex-start;
}

.ateliermg-contact__actions.is-center {
    justify-content: center;
}

.ateliermg-contact__actions.is-right {
    justify-content: flex-end;
}

.ateliermg-contact__button {
    min-width: 8rem;
    padding: 0.7rem 1.5rem;
    color: var(--amg-contact-button-text);
    background: var(--amg-contact-button-bg);
    border: 1px solid var(--amg-contact-button-bg);
    border-radius: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.ateliermg-contact__button:hover,
.ateliermg-contact__button:focus-visible {
    background: var(--amg-contact-button-hover);
    border-color: var(--amg-contact-button-hover);
}

.ateliermg-contact__button:active {
    transform: translateY(1px);
}

.ateliermg-contact__notice {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid;
}

.ateliermg-contact__notice.is-success {
    background: var(--amg-contact-success-bg);
    border-color: var(--amg-contact-success-border);
}

.ateliermg-contact__notice.is-error {
    background: var(--amg-contact-error-bg);
    border-color: var(--amg-contact-error-border);
}

.ateliermg-contact__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 575.98px) {
    .ateliermg-contact__button {
        width: 100%;
    }
}
