/* Umowa współpracy – shortcode [mv_regulamin_wspolpracy] */
.mv-cooperation-agreement {
    width: 100%;
    margin: 1.5em 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    line-height: inherit;
    color: inherit;
}

.mv-cooperation-regulamin {
    width: 100%;
}

.mv-cooperation-form-wrap {
    width: 100%;
    box-sizing: border-box;
}

.mv-cooperation-form-wrap h3 {
    width: 100%;
}

.mv-cooperation-form {
    width: 50%;
    max-width: 100%;
    margin-right: auto;
    margin-left: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .mv-cooperation-form {
        width: 100%;
    }
    .mv-cooperation-form p.mv-cooperation-address-row-1 {
        flex-wrap: wrap;
    }
}

.mv-cooperation-regulamin {
    margin-bottom: 10px;
    padding: 5px 0;
    line-height: 1.6;
}

/* Blok: kreska – tekst (równe odstępy) – kreska */
.mv-cooperation-above-regulamin-wrap {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 1em 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.mv-cooperation-above-regulamin-wrap .mv-cooperation-above-regulamin {
    margin: 0;
}

.mv-cooperation-above-regulamin a {
    font-weight: 500;
}

.mv-cooperation-form-wrap h3 {
    margin: 0;
    font-size: 1.25em;
    line-height: 1.6;
}

.mv-cooperation-form-note {
    margin: 0 0 1em;
    font-style: italic;
    line-height: 1.6;
}

.mv-cooperation-form p {
    margin-top: 10px;
    margin-bottom: 1em;
}

.mv-cooperation-form label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 500;
    font-style: italic;
}

.mv-cooperation-form label .required {
    color: #b32d2e;
}

.mv-cooperation-form input[type="text"],
.mv-cooperation-form input[type="email"],
.mv-cooperation-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.5em 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    box-sizing: border-box;
}

.mv-cooperation-form textarea {
    min-height: 60px;
}

.mv-cooperation-form textarea.mv-activity-description {
    min-height: 10.5em;
    resize: vertical;
}

/* Adres – jedna linia: Ulica, Numer domu, Numer lokalu */
.mv-cooperation-form p.mv-cooperation-address-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 1em;
}

.mv-cooperation-form p.mv-cooperation-address-row-1 {
    flex-wrap: nowrap;
}

.mv-cooperation-form .mv-address-group {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25em 0;
    min-width: 0;
}

/* Ulica zajmuje resztę, Numer domu i Numer lokalu po ok. 100px */
.mv-cooperation-form p.mv-cooperation-address-row-1 .mv-address-group:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.mv-cooperation-form p.mv-cooperation-address-row-1 .mv-address-group:nth-child(2),
.mv-cooperation-form p.mv-cooperation-address-row-1 .mv-address-group:nth-child(3) {
    flex: 0 0 125px;
}

.mv-cooperation-form p.mv-cooperation-address-row-1 .mv-address-group .mv-address-street,
.mv-cooperation-form p.mv-cooperation-address-row-1 .mv-address-group .mv-address-house,
.mv-cooperation-form p.mv-cooperation-address-row-1 .mv-address-group .mv-address-flat {
    width: 100%;
    box-sizing: border-box;
}

.mv-cooperation-form .mv-address-group label {
    margin-bottom: 0;
}

.mv-cooperation-form p.mv-cooperation-address-row-2 .mv-address-group:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.mv-cooperation-form p.mv-cooperation-address-row-2 .mv-address-group:first-child .mv-address-city {
    width: 100%;
    min-width: 100px;
}

.mv-cooperation-form p.mv-cooperation-address-row-2 .mv-address-group:nth-child(2) {
    flex: 0 0 125px;
}

.mv-cooperation-form p.mv-cooperation-address-row-2 .mv-address-postal {
    width: 100%;
    box-sizing: border-box;
}

/* NIP i REGON w jednej linii, podział 50/50 */
.mv-cooperation-form p.mv-cooperation-nip-regon-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 1em;
}

.mv-cooperation-form p.mv-cooperation-nip-regon-row .mv-field-group {
    flex: 1 1 calc(50% - 0.5em);
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25em 0;
}

.mv-cooperation-form p.mv-cooperation-nip-regon-row .mv-field-group input {
    width: 100%;
    box-sizing: border-box;
}

.mv-cooperation-form p.mv-cooperation-nip-regon-row .mv-field-group label {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .mv-cooperation-form p.mv-cooperation-nip-regon-row .mv-field-group {
        flex: 1 1 100%;
    }
}

.mv-cooperation-submit {
    margin-top: 1.5em;
}

.mv-cooperation-submit-btn {
    padding: 0.6em 1.2em;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Przycisk akceptacji – niebieski, biała czcionka, niebieska ramka, hover: czarne tło */
.mv-cooperation-agreement .mv-btn-accept {
    background: #2271b1 !important;
    color: #fff !important;
    border: 1px solid #2271b1 !important;
    outline: none !important;
}

.mv-cooperation-agreement .mv-btn-accept:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.mv-cooperation-agreement .mv-btn-accept:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1 !important;
}

.mv-cooperation-agreement .mv-btn-accept:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mv-cooperation-message {
    margin-top: 0.75em;
    min-height: 1.5em;
}

.mv-cooperation-message.success {
    color: #00a32a;
}

.mv-cooperation-message.error {
    color: #b32d2e;
}
