/* Главный блок */
.shippingnote-main-block {
    max-width: 1200px;
    margin: 50px auto 60px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(34, 39, 49, 0.10), 0 2px 8px rgba(0, 0, 0, .04);
    padding: 48px 60px 52px 60px;
    transition: max-width .3s;
}

/* Заголовок */
.shippingnote-title {
    margin-bottom: 18px;
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #222d33;
}

/* Подзаголовок */
.shippingnote-subtitle {
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 40px;
    color: #68808b;
    font-weight: 500;
}

/* Контейнер формы */
.shippingnote-container {
    max-width: 950px;
    margin: 0 auto;
}

.shippingnote-form-group {
    margin-bottom: 32px;
    transition: box-shadow .22s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shippingnote-form-group label {
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #00376b;
    letter-spacing: .01em;
    font-size: 1.13em;
    transition: color .2s;
}

.shippingnote-form-group label i {
    margin-right: 11px;
    color: #019875;
    font-size: 1.3em;
    vertical-align: middle;
}

/* Все инпуты, селекты, textarea */
.shippingnote-form-group input,
.shippingnote-form-group select,
.shippingnote-form-group textarea {
    width: 100%;
    padding: 16px 19px;
    border: 1.7px solid #cfd8dc;
    border-radius: 8px;
    background: #f7fafd;
    transition: border-color .18s, box-shadow .18s;
    font-size: 1.17em;
    box-sizing: border-box;
}

.shippingnote-form-group input:focus,
.shippingnote-form-group select:focus,
.shippingnote-form-group textarea:focus {
    border-color: #019875;
    background: #fff;
    box-shadow: 0 2px 18px rgba(1, 152, 117, 0.09);
    outline: none;
}

.shippingnote-form-group input[type="file"] {
    padding: 9px 7px;
    background: #fff;
    font-size: 1em;
}

.shippingnote-download-btn-group {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 22px;
}

#download-pdf-btn {
    margin-top: 6px;
}


/* Кнопки */
.shippingnote-btn-row {
    text-align: center;
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
}

#send-btn,
#download-pdf-btn {
    padding: 15px 54px;
    background: linear-gradient(90deg, #019875 60%, #28b485 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    font-size: 1.2em;
    cursor: pointer;
    transition: background .18s, transform .16s, box-shadow .17s;
    box-shadow: 0 3px 16px rgba(1, 152, 117, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
}

#send-btn i,
#download-pdf-btn i {
    font-size: 1.18em;
}

#send-btn:hover,
#send-btn:focus,
#download-pdf-btn:hover,
#download-pdf-btn:focus {
    background: linear-gradient(90deg, #28b485 60%, #019875 100%);
    transform: translateY(-2px) scale(1.055);
    box-shadow: 0 7px 24px rgba(1, 152, 117, 0.16);
}

#shippingnote-message {
    margin-top: 19px;
    text-align: center;
    font-weight: 600;
    font-size: 1.12em;
}

/* Лоадер (экран ожидания отправки) */
#shippingnote-loader {
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
}

.loader-spinner {
    width: 110px;
    height: 110px;
    border: 11px solid #01987519;
    border-top: 11px solid #28b485;
    border-right: 11px solid #019875;
    border-radius: 50%;
    animation: loader-spin 0.72s cubic-bezier(.69, 0, .41, 1) infinite, loader-pop 0.39s cubic-bezier(.49, 1.7, .48, 1.01);
    margin-bottom: 28px;
    box-shadow: 0 4px 40px #01987529;
    background: transparent;
    position: relative;
}

@keyframes loader-spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-pop {
    0% {
        transform: scale(0.8);
    }

    85% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }
}

.loader-spinner::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3.3px solid #28b48599;
    opacity: 0.7;
    animation: loader-dot 1.1s linear infinite;
}

@keyframes loader-dot {
    0% {
        opacity: 0.18;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.1;
    }
}

.loader-text {
    font-size: 1.38em;
    color: #019875;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 14px #01987513;
}

/* Модальное окно результата */
#shippingnote-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1004;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 152, 117, 0.16);
}

.modal-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 42px rgba(34, 39, 49, 0.16), 0 4px 18px rgba(0, 0, 0, .10);
    padding: 58px 84px 44px 84px;
    max-width: 860px;
    /* В 2 раза шире */
    min-width: 480px;
    width: 90vw;
    text-align: center;
    animation: popfade 0.25s cubic-bezier(.41, 1.47, .44, .99);
}

@keyframes popfade {
    0% {
        opacity: 0;
        transform: scale(0.87);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 5em;
    color: #019875;
    margin-bottom: 12px;
    animation: modal-pop 0.5s cubic-bezier(.56, -0.01, .5, 1.41);
}

@keyframes modal-pop {
    0% {
        transform: scale(0.7);
        opacity: 0.5;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    font-weight: 800;
    font-size: 1.6em;
    margin-bottom: 18px;
    color: #232a33;
}

.modal-msg {
    font-size: 1.23em;
    color: #1a3e35;
    margin-bottom: 38px;
    line-height: 1.65;
}

.modal-btn {
    padding: 19px 90px;
    background: linear-gradient(90deg, #019875 60%, #28b485 100%);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-weight: 700;
    font-size: 1.27em;
    cursor: pointer;
    box-shadow: 0 3px 16px #01987522;
    transition: background .18s, box-shadow .18s, transform .14s;
}

.modal-btn:hover {
    background: linear-gradient(90deg, #28b485 60%, #019875 100%);
    transform: scale(1.07);
}

/* Сообщения */
.shippingnote-success {
    color: #2e7d32;
}

.shippingnote-error {
    color: #c62828;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 96vw;
        padding: 32px 8vw 26px 8vw;
    }

    .loader-spinner {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 640px) {
    .modal-content {
        min-width: unset;
        width: 99vw;
        padding: 24px 2vw 15px 2vw;
    }

    .loader-spinner {
        width: 52px;
        height: 52px;
    }
}


/* Блок с таблицей проб */
.gold-sample-table-block {
    margin: 25px 0 11px 0;
}

.gold-sample-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 18px #0198751a;
    table-layout: fixed;
}

.gold-sample-table th,
.gold-sample-table td {
    border: 1.3px solid #e0e6ea;
    padding: 16px 16px;
    text-align: center;
    font-size: 1.15em;
    background: #fff;
    transition: background .18s;
}

.gold-sample-table th {
    background: #e5faf4;
    font-weight: 800;
    color: #019875;
    font-size: 1.18em;
}

.gold-sample-table tfoot th {
    font-weight: 900;
    background: #e8fcf2;
    color: #1e4040;
    border-top: 2.5px solid #019875;
    font-size: 1.19em;
}

.add-sample-row-btn {
    margin: 0 auto;
    display: block;
    background: #019875;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.17em;
    padding: 11px 36px;
    transition: background .18s, box-shadow .18s, transform .15s;
    cursor: pointer;
    box-shadow: 0 3px 10px #01987522;
}

.add-sample-row-btn:hover {
    background: #28b485;
    color: #fff;
    box-shadow: 0 8px 24px #01987527;
    transform: translateY(-1.5px) scale(1.055);
}

.remove-sample-row-btn {
    background: transparent;
    color: #e13c3c;
    border: none;
    font-size: 1.23em;
    cursor: pointer;
    transition: color .16s, transform .16s;
    vertical-align: middle;
}

.remove-sample-row-btn:hover {
    color: #c62828;
    transform: scale(1.22);
}

/* Своя проба */
.custom-sample-input {
    width: 70%;
    min-width: 70px;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    padding: 8px 12px;
    font-size: 1.09em;
    border: 1.3px solid #b9bfc4;
    border-radius: 6px;
    background: #f7fafd;
    transition: border-color .18s, box-shadow .18s;
}

.custom-sample-input:focus {
    border-color: #019875;
    background: #fff;
    outline: none;
}

/* Адаптивность */
@media (max-width: 1280px) {
    .shippingnote-main-block {
        max-width: 98vw;
        padding: 28px 8vw 32px 8vw;
    }

    .shippingnote-container {
        max-width: 100vw;
    }

    .gold-sample-table th,
    .gold-sample-table td {
        padding: 10px 4px;
        font-size: 1em;
    }

    .add-sample-row-btn {
        padding: 10px 10vw;
        font-size: 1em;
    }
}

@media (max-width: 800px) {
    .shippingnote-main-block {
        padding: 11px 4vw 20px 4vw;
    }

    .shippingnote-title {
        font-size: 1.5rem;
    }

    .shippingnote-container {
        max-width: 100vw;
    }

    .gold-sample-table th,
    .gold-sample-table td {
        padding: 7px 2px;
        font-size: 0.93em;
    }

    .add-sample-row-btn {
        padding: 8px 7vw;
        font-size: 1em;
    }
}

/* Блок доступа */
.shippingnote-access-block {
    max-width: 1200px;
    margin: 80px auto 65px auto;
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 10px 40px rgba(40, 60, 70, 0.13), 0 2.5px 5px rgba(0, 0, 0, .04);
    padding: 60px 48px 42px 48px;
    text-align: center;
    border-top: 6px solid #019875;
    position: relative;
    overflow: hidden;
}

.shippingnote-access-icon {
    font-size: 62px;
    color: #019875;
    margin-bottom: 20px;
    animation: shippingnote-pop .75s cubic-bezier(.56, -0.01, .5, 1.41);
}

@keyframes shippingnote-pop {
    0% {
        transform: scale(0.6);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.shippingnote-access-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #232a33;
    letter-spacing: -1px;
}

.shippingnote-access-msg {
    font-size: 1.19rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 43px;
    margin-top: 10px;
}

.shippingnote-access-msg p {
    margin: 9px 0;
}

.shippingnote-access-login {
    font-size: 1.53rem;
    font-weight: 800;
    margin: 33px 0 33px 0;
}

.shippingnote-access-login-btn {
    color: #019875;
    background: #ecfdf5;
    padding: 10px 41px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 11px rgba(1, 152, 117, 0.08);
    border: 2.5px solid #01987520;
    transition: background .19s, color .17s, box-shadow .19s, border .21s;
    display: inline-block;
    font-weight: 600;
}

.shippingnote-access-login-btn:hover {
    background: #019875;
    color: #fff;
    border: 2.5px solid #019875;
    box-shadow: 0 8px 32px #01987526;
    transform: translateY(-2px) scale(1.08);
}

.shippingnote-access-btns {
    margin-top: 28px;
}

.shippingnote-access-continue.btn.btn-primary {
    font-size: 1.21em;
    padding: 13px 44px;
    border-radius: 10px;
    background: #019875;
    border: none;
    font-weight: 700;
    box-shadow: 0 3px 12px #0198752a;
    transition: background .18s, box-shadow .21s;
}

.shippingnote-access-continue.btn.btn-primary:hover,
.shippingnote-access-continue.btn.btn-primary:focus {
    background: #1eb483;
    color: #fff;
    box-shadow: 0 9px 28px #0198753f;
}

.shippingnote-instruction-block {
    max-width: 950px;
    margin: 0 auto 32px auto;
    background: #f3faf7;
    border-left: 6px solid #019875;
    border-radius: 9px;
    box-shadow: 0 2px 14px #01987513;
    padding: 24px 36px 18px 36px;
    font-size: 1em;
    color: #25323b;
}

.shippingnote-instruction-title {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #019875;
    display: flex;
    align-items: center;
}

.shippingnote-instruction-title i {
    margin-right: 10px;
    font-size: 1em;
}

.shippingnote-instruction-block ol {
    margin: 0 0 0 17px;
    padding: 0;
}

.shippingnote-instruction-block li {
    margin-bottom: 6px;
    line-height: 1.2;
}

.dropzone {
    border: 2px dashed #019875;
    background: #f7fafd;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.18s, background 0.15s;
    margin-top: 6px;
    margin-bottom: 9px;
}

.dropzone.dragover {
    border-color: #28b485;
    background: #e5faf4;
}

.dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dropzone-label {
    font-size: 1.18em;
    color: #00996a;
    font-weight: 600;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    z-index: 1;
    position: relative;
}

.dropzone .fa-upload {
    font-size: 1.3em;
}

.shippingnote-history-block {
    background: #faf5e6;
    border-radius: 9px;
    box-shadow: 0 1px 7px #faeebf38;
    padding: 12px 18px 6px 18px;
    margin-bottom: 10px;
}

.shippingnote-history-block ol {
    margin: 0 0 0 14px;
    padding: 0;
}

.shippingnote-history-block li {
    margin-bottom: 2px;
    font-size: 1.05em;
}

.badge-metal.badge-gold {
    background: linear-gradient(90deg, #ffd700 80%, #ffb300 100%);
    color: #786200;
    border: 1px solid #ffe47a;
    padding: 2px 10px;
    border-radius: 9px;
    font-weight: bold;
}

.badge-metal.badge-silver {
    background: linear-gradient(90deg, #dadada 80%, #bdbdbd 100%);
    color: #3e3e3e;
    border: 1px solid #e8e8e8;
    padding: 2px 10px;
    border-radius: 9px;
    font-weight: bold;
}

/* Стили для чекбокса исправления */
.checkbox-fix-group {
    padding: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label i {
    margin-right: 5px;
    color: #f39c12;
}

.fix-date-field {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #f39c12;
}

.fix-date-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #666;
}

.fix-date-field input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Стили для выбора исправляемого отправления */
.fix-shipping-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fix-shipping-wrapper select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.fix-shipping-wrapper .fix-shipping-loader {
    margin-left: 10px;
    color: #f39c12;
}

.fix-shipping-info {
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-left: 3px solid #f39c12;
    border-radius: 3px;
}

.fix-shipping-info i {
    margin-right: 5px;
    color: #f39c12;
}

.fix-shipping-select select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}
