﻿body {
    font-family: Arial, sans-serif;
    background-color: #f8fafc;
    background-image:
        linear-gradient(#e9edf2 1px, transparent 1px), linear-gradient(90deg, #e9edf2 1px, transparent 1px);
    background-size: 40px 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
}

form {
    width: min(960px, 92vw);
}

label {
    display: inline-block;
    width: 180px;
    vertical-align: top;
}

input,
select {
    margin: 4px 0;
    cursor: pointer;
}

.row {
    margin-bottom: 6px;
}

.box {
    border: 1px solid #ccc;
    padding: 12px;
    margin: 8px 0;
    box-sizing: border-box;
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.paperSettings {
    display: flex;
    gap: 20px;
}

.paperOption {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    cursor: pointer;
    margin: 6px 0;
    line-height: 1.5;
}

.paperSettings .box:last-child {
    flex: 1;
    min-width: 0;
}

small {
    color: #444;
}

.submitBtn {
    display: block;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
    min-width: 220px;
    padding: 12px 26px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: #2e7d32;
    border: 1px solid #25682a;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(31, 86, 35, 0.28);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.submitBtn:hover {
    background: #276b2b;
    border-color: #1f5623;
    box-shadow: 0 6px 14px rgba(31, 86, 35, 0.34);
}

.submitBtn:active {
    background: #225d26;
}

.submitBtn:disabled {
    background: #8aa18c;
    border-color: #738a75;
    box-shadow: none;
    cursor: not-allowed;
}

.borderSwitch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    cursor: pointer;
}

.borderSwitch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.borderSlider {
    position: absolute;
    inset: 0;
    background: #d1d9e3;
    border: 1px solid #aeb8c5;
    border-radius: 5px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.borderSlider::after {
    content: 'No';
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1px;
    color: #4a5568;
    transition:
        left 0.2s ease,
        right 0.2s ease,
        color 0.2s ease,
        content 0.2s ease;
}

.borderSlider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 50%;
    background: #fefefe;
    border: 1px solid #b8c2cf;
    border-radius: 4px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    transform: translateY(-50%);
    transition:
        left 0.2s ease,
        border-color 0.2s ease;
}

.borderSwitch input:checked + .borderSlider {
    background: #2e7d32;
    border-color: #25682a;
}

.borderSwitch input:checked + .borderSlider::after {
    content: 'Yes';
    left: 7px;
    right: auto;
    color: #eaf6ec;
}

.borderSwitch input:checked + .borderSlider::before {
    left: calc(100% - 3px - 22px);
    border-color: #245e28;
}
