/* Container chính */
.dat-ve-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* Phân chia cột cho phần nội dung chính */
.booking-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

/* Cột trái - chứa hình ảnh và thng tin vé */
.left-column {
    flex: 1;
    width: 400px;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
    box-sizing: border-box;
}

/* Hình ảnh v */
.ticket-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Phần thông tin vé */
.ticket-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Dng thông tin (Loại vé, Ngày đi, ...) */
.ticket-info p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Phần nhãn (Loại vé:, Ngày đi:, ...) */
.ticket-info p strong {
    flex-basis: 35%;
    text-align: left;
}

/* Phần thông tin (tên vé, ngày, ...) */
.ticket-info p span {
    flex-basis: 65%;
    text-align: right;
}

/* Màu đỏ cho tổng tiền */
.highlighted-text {
    color: #d9534f;
    font-weight: bold;
    font-size: 18px;
}

/* Cột phải - chứa form thông tin khách hàng */
.right-column {
    flex: 2;
    width: 700px;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
}

/* Nút xác nhận đt vé */
button[type="submit"] {
    background-color: #28a745;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 25px;
    font-size: 16px;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* Form đặt vé */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dat-ve-container {
        padding: 15px;
    }

    .booking-content {
        flex-direction: column;
        gap: 20px;
    }

    .left-column, .right-column {
        width: 100%;
        max-width: none;
        padding: 20px;
    }

    .ticket-image img {
        max-width: 100%;
        height: auto;
    }

    .ticket-info p {
        font-size: 14px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    button[type="submit"] {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Trang cảm ơn */
.thank-you-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thank-you-page .dat-ve-container {
    flex: 1;
    margin-bottom: 0;
}

.thank-you-page .thank-you-message {
    text-align: center;
    padding: 40px 20px;
}

.thank-you-page .thank-you-message h2 {
    color: #28a745;
    margin-bottom: 30px;
}

.thank-you-page .thank-you-message table {
    margin: 0 auto 30px;
    max-width: 950px;
}

.thank-you-page .button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.thank-you-page .button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* CSS cho phần mã giảm giá */
.coupon-section {
    margin-top: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.coupon-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.coupon-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.coupon-input input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.coupon-input button {
    padding: 12px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-input button:hover {
    background: #218838;
    transform: translateY(-2px);
}

.coupon-message {
    margin: 10px 0;
    font-size: 14px;
}

.coupon-message.success {
    color: #28a745;
}

.coupon-message.error {
    color: #dc3545;
}

.discount-info {
    margin: 15px 0;
}

.discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
}

.discount-amount {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.discount-amount .amount {
    color: #28a745;
    font-weight: bold;
}

.remove-coupon {
    width: auto !important;
    padding: 5px 10px !important;
    display: inline-block;
    background: #dc3545 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.final-amount {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-amount .amount {
    color: #28a745;
    font-size: 18px;
}

/* Mobile Adjustments cho phần mã giảm giá */
@media (max-width: 768px) {
    .coupon-section {
        padding: 15px;
    }

    .coupon-input {
        flex-direction: column;
        gap: 10px;
    }

    .coupon-input button {
        width: 100%;
        padding: 12px;
    }

    .discount-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .discount-amount {
        justify-content: space-between;
    }

    .remove-coupon {
        width: auto !important;
        padding: 5px 10px !important;
    }
}

.thank-you-page table {
    width: 100%;
    max-width: 950px;
    margin: 0 auto 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.thank-you-page .button {
    background: #28a745;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.2s, color 0.2s;
}

.thank-you-page .button:hover {
    background: #218838;
    color: #fff;
}