@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Merriweather", serif;
}

body {
    display: block;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 5px;
    background: linear-gradient(225deg, #fff8f4 0%, #f6e7de 40%, #d8a58f 100%);
    overflow-y: auto;
}

header {
    background: none;
    color: #b27c65;
    width: 100%;
    padding: 20px;
    font-size: 1.0rem;
}

.back-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .calculator-scroll-wrapper,
    .table-scroll-wrapper {
        max-height: none;
        overflow: visible;
    }

    .container,
    .container-table {
        width: 100%;
    }
}

.page-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: auto;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0;
}

.calculator-scroll-wrapper,
.table-scroll-wrapper {
    flex: 1;
    max-height: 500px;
    overflow-y: visible;
    overflow-x: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.container-calculator h2 {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 10px 0;
    z-index: 2;
}

.container {
    flex: 1;
    max-width: none;
}

.container-calculator,
.container-table {
    flex: 1;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
}

.container,
.container-table {
    flex: 1;
    background-color: white;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

form h2,
h4 {
    text-align: center;
    width: 100%;
}

p {
    text-align: center;
    margin-bottom: 15px;
}

.form ::placeholder {
    text-align: center;
}

.form .select-box select {
    text-align: center;
}

.input-box,
.select-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
}

.input-box input,
.select-box select {
    text-align: center;
    width: 100%;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.radio-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.radio-box .p {
    text-align: left;
    width: 100%;
}


.radio-box>label {
    font-weight: 500;
    margin-bottom: 5px;
}

.radio-box .acInput,
.radio-box .liftInput {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
}

.radio-box .acInput label,
.radio-box .liftInput label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    background-color: #f6e7de;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d8a58f;
    transition: background-color 0.2s;
    cursor: pointer;
}

.accessory-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessory-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}


.container-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.container-table thead th {
    position: sticky;
    top: 0;
    background-color: #d8a58f;
    color: white;
    z-index: 2;
}

.container-table th,
.container-table td {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.container-table tbody tr:nth-child(even) {
    background-color: #f9f5f3;
}

.container-table tbody tr:hover {
    background-color: #f1e7e4;
}

.container-table h2 {
    font-family: "Merriweather", serif;
    color: #b27c65;
    margin-bottom: 10px;
}

.deleteBtn {
    max-width: 80px;
    font-size: 0.5rem;
    white-space: nowrap;
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.deleteBtn:hover {
    background-color: #c9302c;
}

.removeBtn {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    background-color: #d9534f;
}

.removeBtn:hover {
    background-color: #c9302c;
}


form button {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 5px 10px;
    background-color: #d8a58f;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #b27c65;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.primary-button {
    padding: 8px 16px;
    background-color: #d8a58f;
    border: none;
    color: white;
    border-radius: 5px;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.primary-button:hover {
    background-color: #b27c65;
}

.secondary-button {
    padding: 8px 16px;
    background-color: white;
    border: 2px solid #d8a58f;
    color: #d8a58f;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.secondary-button:hover {
    background-color: #f6e7de;
    color: #b27c65;
}