:root {
	--accent: 136, 58, 234;
	--accent-light: 224, 204, 250;
	--accent-dark: 49, 10, 101;
	--accent-gradient: linear-gradient(
		45deg,
		rgb(var(--accent)),
		rgb(var(--accent-light)) 30%,
		white 60%
	);
}
html {
	font-family: system-ui, sans-serif;
	background: #13151a;
	background-size: 224px;
}
code {
	font-family:
		Menlo,
		Monaco,
		Lucida Console,
		Liberation Mono,
		DejaVu Sans Mono,
		Bitstream Vera Sans Mono,
		Courier New,
		monospace;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #FFFFFF;
    color: #483A1D;
    font-size: 14px;
}

.container {
    max-width: 1242px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 20px;
}

a {
    color: #086DC5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 37px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Test Söhne', sans-serif;
    font-weight: 800;
    font-size: 17.8px;
    letter-spacing: -0.03em;
    color: #483A1D;
}

.logo-subtitle {
    font-size: 8.15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #483A1D;
}

.company-address {
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header-divider {
    border: none;
    height: 1px;
    background-color: #483A1D;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Alexandria', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #086DC5;
    text-align: center;
    letter-spacing: -0.03em;
    margin-top: 20px;
    margin-bottom: 30px;
}

.info-boxes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    background-color: #F8F8F8;
    border-radius: 12px;
    padding: 16px;
    flex: 1;
    min-width: 300px;
}

.booking-box {
    border: 3px solid #086DC5;
}

.info-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: #086DC5;
    text-align: center;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.info-item .label {
    font-weight: 700;
    width: 80px;
    flex-shrink: 0;
}

.info-item .value {
    font-weight: 500;
}

.booking-box .info-item .value {
    font-weight: 700;
}
.booking-box .info-item:not(:first-child) .value {
    font-weight: 500;
}


.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.vehicle-details {
    flex: 0 0 35%;
    margin-right: 20px;
}

.vehicle-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.vehicle-specs {
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #F8F8F8;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: rgba(72, 58, 29, 0.9);
}
.spec-item:first-child {
     background-color: #EEEEEE;
}

.spec-item .label {
    font-weight: 500;
    text-transform: uppercase;
}

.spec-item .value {
    font-weight: 700;
}

.floorplan-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.pricing-details {
    flex: 1 1 65%;
}


.pricing-table .col-desc { width: 45%; }
.pricing-table .col-qty   { width: 15%; text-align: right; }
.pricing-table .col-price { width: 20%; text-align: right; }
.pricing-table .col-sum   { width: 20%; text-align: right; }

.pricing-table th.col-qty,
.pricing-table th.col-price,
.pricing-table th.col-sum {
    text-align: right;
}


.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    border: 4px solid #483A1D;
    margin-bottom: 16px;
    font-size: 16px;
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #DBDBDB;
    color: #483A1D;
    border-right: 1px solid #DBDBDB;
}
.pricing-table th:last-child,
.pricing-table td:last-child {
    border-right: none;
}
.pricing-table td[colspan="3"]:not(:last-child) {
     border-right: 1px solid #DBDBDB;
}


.pricing-table thead th {
    background-color: #EEEEEE;
    font-weight: 700;
    text-align: center;
}
.pricing-table thead th:first-child {
    text-align: left;
}


.pricing-table tbody tr {
    background-color: #F8F8F8;
}
.pricing-table tbody tr:last-child td {
    border-bottom: 2px solid #483A1D;
}
.pricing-table tbody tr:last-child td {
    border-bottom: none;
}


.pricing-table tfoot td {
    background-color: #FFFFFF;
    font-weight: 700;
    border-top: 2px solid #483A1D;
    border-bottom: none;
}

.pricing-table .total-label {
    text-align: right;
}
.total-table tfoot .total-label {
    text-align: right !important;
}

.pricing-table .total-value {
    text-align: right;
    font-weight: 700;
}


.total-table {
    border-color: #086DC5;
}
.total-table tfoot td {
     background-color: #EEEEEE;
}
.total-table td[colspan="3"] {
    width: 80%;
}
.total-table .grand-total {
    font-weight: 700;
}


.payment-summary {
    margin-bottom: 30px;
}

.payment-section {
    margin-bottom: 16px;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #086DC5;
    color: #FFFFFF;
    padding: 5px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.rent-header {
    font-weight: 500;
}


.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #F8F8F8;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(72, 58, 29, 0.9);
}

.payment-methods {
    background-color: #F8F8F8;
    border-radius: 12px;
    padding: 16px;
}

.payment-methods h2 {
    font-size: 24px;
    font-weight: 700;
    color: #086DC5;
    text-align: center;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 16px;
}

.fees-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #483A1D;
}

.methods-list {
    flex-basis: 40%;
}

.methods-list .method-label {
    font-weight: 700;
    margin-bottom: 8px;
}
.methods-list div {
    margin-bottom: 4px;
}


.fees-table {
    display: flex;
    gap: 8px;
    flex-basis: 55%;
    justify-content: flex-end;
}

.fee-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fee-column:last-child {
    text-align: right;
    min-width: 120px;
}
.fee-column:first-child {
     min-width: 80px;
     text-align: right;
}


.fee-label {
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 992px) {
    .info-boxes {
        flex-direction: column;
    }
    .main-content {
        flex-direction: column;
    }
    .vehicle-details {
        max-width: 100%;
    }
    .fees-details {
        flex-direction: column;
        align-items: center;
    }
    .methods-list, .fees-table {
        flex-basis: 100%;
        width: 100%;
        text-align: center;
    }
    .fees-table {
        justify-content: center;
    }
     .fee-column:first-child, .fee-column:last-child {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .vehicle-img {
        max-height: none;
    }
     h1 {
        font-size: 40px;
    }
    .pricing-table th, .pricing-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    .info-item {
        font-size: 14px;
    }
    .spec-item {
        font-size: 14px;
    }
    .payment-item {
        font-size: 14px;
    }
    .fees-details {
        font-size: 12px;
    }
}

table td,
table th {
  overflow-wrap: break-word;
  word-break: break-all;
  max-width: 0;
}

.error-message, .loading-message {
    text-align: center;
    padding: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    background-color: #f9f9f9;
}
.error-message h1 {
    color: #d9534f;
}
.loading-message h1 {
    color: #5bc0de;
}
