:root {
    --dolmed-color: #e40046;

    /* TU ZMIENIASZ SZEROKOŚĆ STRONY */
    --page-width: 1200px;

    /* TU ZMIENIASZ SZEROKOŚĆ KARTY FORMULARZA */
    --form-width: 880px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', Arial, sans-serif;
}

.grid-container {
    max-width: var(--page-width);
}

/* GÓRNY PASEK */

.dolmed-top-bar {
    height: 38px;
    background: var(--dolmed-color);
}

.dolmed-top-bar .grid-container {
    height: 38px;
    display: flex;
    align-items: center;
}

.dolmed-phone {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.dolmed-phone i {
    margin-right: 8px;
}

/* HEADER */

.header-main {
    background: #fff;
    padding: 20px 0;
}

.logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo_dcm,
.logo_ds {
    max-height: 75px;
}

.header-links {
    text-align: right;
}

/* MENU */

#dolmed-menu ul {
    background: transparent;
}

#dolmed-menu li {
    display: inline-block;
}

#dolmed-menu a {
    display: inline-block;
    margin-left: 15px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

#dolmed-menu a:hover,
#dolmed-menu a.current {
    color: var(--dolmed-color);
}

#dolmed-menu a.button-menu {
    color: #fff;
    background: var(--dolmed-color);
    padding: 12px 24px;
    border-radius: 30px;
}

/* HAMBURGER */

.title-bar {
    background: transparent;
    padding: 0;
    justify-content: flex-end;
}

.title-bar-title {
    display: none;
}

.menu-icon::after {
    background: var(--dolmed-color);
    box-shadow: 0 7px 0 var(--dolmed-color), 0 14px 0 var(--dolmed-color);
}

/* INTRO */

.page-intro {
    margin-top: 35px;
    margin-bottom: 10px;
    width: 100%;
}

.page-intro h1 {
    font-size: 32px;
    font-weight: 700;
    color: #3f4659;
    margin: 0 0 15px 0;
}

.page-intro p {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.8;
    color: #5d6473;
    margin: 0;
}

/* FORMULARZ */

.form-card {
    max-width: var(--form-width);
    margin: 15px auto 35px auto;
    padding: 25px 65px 55px;
    background: #f8f8f8;
    border-radius: 12px;
}

.form-card h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.form-card h3 {
    margin: 35px 0 25px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.form-card-line,
.form-line {
    height: 1px;
    background: #e2e2e2;
    margin-bottom: 20px;
}

.form-line.bottom {
    margin-top: 30px;
}

.form-card label {
    font-size: 14px;
    font-weight: 700;
    color: #404756;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card select {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 22px;
    background: #fff;
    box-shadow: none;
    padding: 0 18px;
    font-size: 14px;
}

.form-card input::placeholder {
    color: #c8c8c8;
}

.required {
    color: var(--dolmed-color);
}

/* RECEPTA 365 */

.recepta365-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
    font-size: 14px;
    color: #333;
}

.recepta365-row label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recepta365-row strong {
    margin: 0;
}

.recepta365-row input[type="radio"] {
    margin: 0;
}

.recepta365-link {
    margin-left: auto;
    color: var(--dolmed-color);
    font-weight: 700;
    text-decoration: none;
}

/* LEKI */

.medicine-header {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 900;
    color: #404756;
}

.medicine-header .cell {
    line-height: 1.3;
}

.medicine-row {
    margin-bottom: 10px;
}

.medicine-lp {
    font-weight: 900;
    color: #333;
}

.medicine-row input {
    width: 100%;
    margin-bottom: 0;
}

.add-drug-button {
    width: calc(100% - 35px);
    margin-left: 35px;
    height: 44px;
    border: 2px solid var(--dolmed-color);
    border-radius: 25px;
    background: transparent;
    color: #404756;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.add-drug-button span {
    margin-left: 10px;
    color: var(--dolmed-color);
    font-size: 22px;
}

/* LICZBA OPAKOWAŃ */

.qty-control {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 22px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.qty-control button {
    width: 36px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #404756;
    font-size: 20px;
    cursor: pointer;
}

.qty-control input {
    width: 40px !important;
    height: 42px !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: center;
    font-weight: 700;
    background: transparent !important;
}

/* ZGODY / PRZYCISKI */

.marketing {
    text-align: center;
    font-size: 14px;
}

.marketing label {
    font-weight: 900;
}

.submit-box {
    text-align: center;
    margin-top: 25px;
}

.submit-button {
    background: var(--dolmed-color);
    color: #fff;
    border: 0;
    border-radius: 25px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.submit-button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.klauzula-link {
    margin-top: 20px;
    text-align: center;
}

.klauzula-link a {
    color: #404756;
    font-weight: 700;
}

input.error {
    border: 1px solid var(--dolmed-color) !important;
    color: var(--dolmed-color);
}

#errorMsg {
    color: var(--dolmed-color);
    text-align: center;
    font-weight: 700;
}

/* MOBILE */

@media screen and (max-width: 640px) {
    .header-main {
        padding: 10px 0;
    }

    .logos {
        justify-content: flex-start;
    }

    .logo_dcm,
    .logo_ds {
        max-height: 65px;
    }

    .header-links {
        text-align: center;
        margin-top: 20px;
    }

    .title-bar {
        min-height: 65px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    #dolmed-menu {
        width: 100%;
        padding: 20px 0 25px;
        border-top: 1px solid #eeeeee;
        background: #fff;
        text-align: center;
    }

    #dolmed-menu ul {
        display: block;
        width: 100%;
        text-align: center;
        background: #fff;
    }

    #dolmed-menu li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 14px 0;
        border-bottom: 1px solid #eeeeee;
    }

    #dolmed-menu li:last-child {
        border-bottom: 0;
        padding-top: 22px;
    }

    #dolmed-menu a {
        display: block;
        margin-left: 0;
        font-size: 22px;
        font-weight: 400;
        color: #26324a;
    }

    #dolmed-menu a.current {
        color: var(--dolmed-color);
        font-weight: 700;
    }

    #dolmed-menu a.button-menu {
        display: inline-block;
        width: calc(100% - 40px);
        max-width: 360px;
        padding: 16px 20px;
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        background: var(--dolmed-color);
        border-radius: 30px;
    }

    .page-intro {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .page-intro h1 {
        font-size: 30px;
    }

    .page-intro p {
        font-size: 17px;
        line-height: 1.7;
    }

    .form-card {
        max-width: 100%;
        margin-top: 15px;
        padding: 25px 18px 45px;
    }

    .form-card h2 {
        font-size: 20px;
        line-height: 1.2;
        white-space: nowrap;
        margin-bottom: 18px;
    }

    .form-card h3 {
        font-size: 28px;
        line-height: 1.2;
    }

    .medicine-header {
        font-size: 12px;
    }

    .medicine-header .cell:nth-child(1) {
        font-size: 0;
    }

    .medicine-header .cell:nth-child(2) {
        font-size: 0;
    }

    .medicine-header .cell:nth-child(2)::after {
        content: "Nazwa leku";
        font-size: 12px;
    }

    .medicine-header .cell:nth-child(3) {
        font-size: 0;
        text-align: center;
    }

    .medicine-header .cell:nth-child(3)::after {
        content: "Liczba";
        font-size: 12px;
    }

    .add-drug-button {
        width: 100%;
        margin-left: 0;
    }

    .submit-button {
        width: 100%;
        max-width: 300px;
    }
}

/* ACCORDION */

.dolmed-accordion {
    max-width: var(--form-width);
    margin: 35px auto 45px auto;
    border: 0;
    background: transparent;
}

.dolmed-accordion .accordion-item {
    border: 0;
    margin-bottom: 14px;
    background: transparent;
}

.dolmed-accordion .accordion-title {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 72px;
    padding: 0 70px 0 22px;

    background: #fff;
    border: 0;
    border-radius: 12px;

    box-shadow: 0 5px 16px rgba(0,0,0,0.06);

    text-decoration: none;
}

.dolmed-accordion .accordion-title:hover,
.dolmed-accordion .accordion-title:focus {
    background: #fff;
}

.dolmed-accordion .accordion-title::before {
    display: none;
}

/* plus/minus po prawej */

.accordion-status {
    position: absolute;
    right: 24px;
    top: 50%;

    width: 24px;
    height: 24px;

    transform: translateY(-50%);

    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

/* zamknięty */
.dolmed-accordion .accordion-item .accordion-status {
    background-image: url('../img/plus-icon.svg');
}

/* otwarty */
.dolmed-accordion .accordion-item.is-active .accordion-status {
    background-image: url('../img/minus-icon.svg');
}

.accordion-icon-left {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    margin-right: 18px;
}

.accordion-icon-left img {
    width: 62px;
    height: 62px;
    display: block;
}

.accordion-text {
    font-size: 18px;
    font-weight: 700;
    color: #26324a;
}

.sipr-banner {
    max-width: var(--form-width);
    margin: 35px auto 60px auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
}

.sipr-banner img {
    width: 100%;
    display: block;
}

.dolmed-footer {
    margin-top: 40px;
    padding: 22px 0;
    background: #e5e5e5;
    text-align: center;
}

.dolmed-footer a {
    font-size: 11px;
    color: #555;
    text-decoration: none;
}

.dolmed-footer a {
    font-size: 16px;
    font-weight: 700;
    color: #404756;
    text-decoration: none;
}

/* REVEAL */

.reveal.large {
    max-width: 950px;
}

.reveal {
    padding: 30px 40px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
}

.reveal h2 {
    font-size: 36px;
    font-weight: 700;
    color: #26324a;
    margin-bottom: 25px;
}

.close-button {
    color: #404756;
}

/* STATUS LIMIT / WYSLANE */

.message-section {
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 65px;
}

.message-section .grid-container {
    width: 100%;
}

.message-card {
    max-width: 760px;
    margin: 0 auto 70px auto;
    padding: 50px 90px 20px;
    background: #f8f8f8;
    border-radius: 14px;
    text-align: center;
}

.status-card {
    text-align: center;
}

.status-card-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto -22px auto;
    position: relative;
    top: -30px;
}

.status-card-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.status-card p {
    max-width: 560px;
    margin: 0 auto 24px auto;
    font-size: 20px;
    line-height: 1.45;
    color: #26324a;
}

.status-card p:first-of-type {
    color: var(--dolmed-color);
    font-weight: 700;
}

.status-card strong {
    color: var(--dolmed-color);
    font-weight: 700;
}

.status-card a:not(.status-button) {
    color: #0073bc;
    text-decoration: none;
    font-size: 20px;
}

.status-card .status-button {
    display: inline-block;
    margin-top: 10px;
    padding: 16px 48px;
    border-radius: 30px;
    background: var(--dolmed-color);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

@media screen and (max-width: 640px) {

    .message-section {
        padding-top: 0;
        min-height: auto;
    }

    .message-card {
        max-width: 100%;
        padding: 4px 2px;
    }

    .status-card p,
    .status-card a:not(.status-button) {
        font-size: 18px;
    }

}
.status-card-small {
    font-size: 16px !important;
    line-height: 1.5;
}