/* ==========================================================
   FONT
   ========================================================== */

@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/centurygothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================
   PAGE BACKGROUND
   ========================================================== */

.new-account,
.new-account * {
    box-sizing: border-box;
}

.new-account {
    position: relative;
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 1280 / 800;
    margin: 0 auto;
    overflow: hidden;

    background:
        url('../img/pricelistbg.png')
        center center / 100% 100%
        no-repeat;

    color: #111;
    font-family: 'Century Gothic', Arial, sans-serif;
}


/* ==========================================================
   CONTENT POSITION
   ========================================================== */

.new-account__content {
    position: absolute;
    top: 17%;
    left: 13%;
    width: 48%;
    height: 59%;

    display: flex;
    flex-direction: column;
    min-height: 0;
}


/* ==========================================================
   TITLE IMAGE
   ========================================================== */

.new-account__title {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
}

.new-account__title-img {
    display: block;
    width: 100%;
    max-width: 466px;
    height: auto;
    margin: 0;
}


/* ==========================================================
   MESSAGES
   ========================================================== */

.new-account__message {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 8px;
    padding: 7px 10px;
    font-size: clamp(8px, 0.8vw, 11px);
}

.new-account__message--error {
    background: #ffe4e4;
    border: 1px solid #dc7777;
}

.new-account__message--success {
    background: #e8f7df;
    border: 1px solid #85b969;
}


/* ==========================================================
   SCROLLABLE FORM
   ========================================================== */

.new-account__form {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 0 8px 12px 0;

    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
}

.new-account__form::-webkit-scrollbar {
    width: 6px;
}

.new-account__form::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 6px;
}

.new-account__form::-webkit-scrollbar-track {
    background: transparent;
}

/* Supports the wrapper if you added it to the PHP earlier */
.new-account__form-scroll {
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
}


/* ==========================================================
   CUSTOMER ACCOUNT NUMBER
   ========================================================== */

.new-account__account-number {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 10px;

    font-size: clamp(8px, 0.8vw, 11px);
    font-weight: bold;
}

.new-account__account-number label {
    white-space: nowrap;
}

.new-account__account-number input {
    width: 34%;
    height: 25px;
    padding: 3px 6px;

    border: 1px solid #999;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);

    color: #111;
    font: inherit;
    font-weight: normal;
}


/* ==========================================================
   TABLES
   ========================================================== */

.new-account__table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
}

.new-account__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;

    background: rgba(255, 255, 255, 0.84);
    font-size: clamp(8px, 0.78vw, 11px);
}

.new-account__table th,
.new-account__table td {
    border: 1px solid #aaa;
    padding: 0;
}

.new-account__table .new-account__section-title {
    height: 28px;
    padding: 4px;

    text-align: center;
    font-size: clamp(10px, 0.95vw, 14px);
    font-weight: bold;
}

.new-account__table tbody th {
    width: 28%;
    height: 26px;
    padding: 4px 6px;

    text-align: left;
    vertical-align: middle;
    font-weight: normal;
}

.new-account__table tbody td {
    width: 72%;
}

.new-account__table tbody th label {
    display: block;
    margin: 0;
    font: inherit;
}

.new-account__table input,
.new-account__table textarea {
    display: block;
    width: 100%;
    min-height: 26px;
    padding: 4px 6px;

    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;

    color: #111;
    font: inherit;
}

.new-account__table textarea {
    min-height: 48px;
    resize: vertical;
}

.new-account__table input:focus,
.new-account__table textarea:focus,
.new-account__account-number input:focus {
    background: #fff;
    outline: 1px solid #777;
}


/* ==========================================================
   CONTACT PERSON TABLE
   ========================================================== */

.new-account__table--contacts thead tr:nth-child(2) th {
    height: 26px;
    padding: 4px;
    text-align: center;
    font-weight: normal;
}

.new-account__table--contacts thead tr:nth-child(2) th:first-child {
    width: 28%;
}

.new-account__table--contacts thead tr:nth-child(2) th:nth-child(2),
.new-account__table--contacts thead tr:nth-child(2) th:nth-child(3),
.new-account__table--contacts thead tr:nth-child(2) th:nth-child(4) {
    width: 24%;
}


/* ==========================================================
   ACTION BUTTONS
   ========================================================== */

.new-account__actions {
    position: static;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    width: 100%;
    margin-top: 12px;
}

.new-account__image-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;

    padding: 0;
    margin: 0;
    border: 0;

    background: transparent;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
}

.new-account__image-button img {
    display: block;
    width: auto;
    height: 40px;
    object-fit: contain;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.new-account__image-button:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

.new-account__image-button:active img {
    transform: scale(0.97);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {
    .new-account__content {
        top: 17%;
        left: 13%;
        width: 51%;
        height: 59%;
    }

    .new-account__title {
        margin-bottom: 8px;
    }

    .new-account__table-wrap {
        margin-bottom: 8px;
    }

    .new-account__image-button img {
        height: 34px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {
    .new-account__content {
        top: 17%;
        left: 13%;
        width: 55%;
        height: 59%;
    }

    .new-account__title {
        margin-bottom: 5px;
    }

    .new-account__form {
        padding-right: 4px;
        padding-bottom: 6px;
    }

    .new-account__account-number {
        gap: 3px;
        margin-bottom: 5px;
        font-size: clamp(5px, 1.15vw, 8px);
    }

    .new-account__account-number input {
        width: 35%;
        height: 16px;
        padding: 2px 3px;
    }

    .new-account__table {
        font-size: clamp(5px, 1.05vw, 8px);
    }

    .new-account__table .new-account__section-title {
        height: 19px;
        padding: 2px;
        font-size: clamp(6px, 1.3vw, 9px);
    }

    .new-account__table tbody th,
    .new-account__table--contacts thead tr:nth-child(2) th {
        height: 18px;
        padding: 2px 3px;
    }

    .new-account__table input,
    .new-account__table textarea {
        min-height: 18px;
        padding: 2px 3px;
        font-size: inherit;
    }

    .new-account__table textarea {
        min-height: 30px;
    }

    .new-account__table-wrap {
        margin-bottom: 6px;
    }

    .new-account__actions {
        gap: 4px;
        margin-top: 7px;
    }

    .new-account__image-button img {
        height: 25px;
    }
}

/* ==========================================================
   DOCUMENT NOTE
   ========================================================== */

.new-account__document-note {
    width: 100%;
    box-sizing: border-box;

    margin: 14px 0 10px;
    padding: 8px 12px;

    font-size: 11px;
    line-height: 1.5;
    font-weight: 500;

    color: #000000;
    text-align: left;
}

.new-account__document-note strong {
    font-weight: 800;
}

/* Mobile Landscape */
@media (max-width: 950px) and (orientation: landscape) {
    .new-account__document-note {
        margin: 8px 0 6px;
        padding: 5px 8px;

        font-size: 8px;
        line-height: 1.35;
    }
}

@media screen and (min-width: 1101px) {

    .new-account {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }

}