/* ================= GLOBAL ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
    background: #4fa3b3;
    color: #333;
}

/* ================= CARD SYSTEM ================= */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    max-width: 900px;
    margin: 24px auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.card-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #777;
}

.card-body {
    margin-top: 10px;
}

/* ================= BUTTONS ================= */
.btn-group {
    text-align: center;
}

button {
    padding: 10px 26px;
    margin: 6px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #bdbdbd;
    color: #ffffff;
    font-size: 15px;
    transition: background 0.2s ease;
}

button:hover {
    background: #9e9e9e;
}

button.active {
    background: #27ae60;
}

.continue-btn {
    background: #f39c12;
}

.continue-btn:hover {
    background: #e67e22;
}

/* ================= FORM ================= */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row input,
.form-row select,
.card-body input,
.card-body select {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #27ae60;
}

.form-row{
    margin-top: 10px;
}
/* ================= TEXT ================= */
.agreement-text {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    color: #555;
    margin: 10px 0;
}

/* ================= UTIL ================= */
.hidden {
    display: none !important;
}

/* ================= SIGNATURE MODAL ================= */
.signature-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.signature-modal.show {
    display: flex;
}

.signature-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 550px;
    max-width: 95%;
    text-align: center;
}

.signature-box h3 {
    margin-top: 0;
}

#signatureCanvas {
    width: 100%;
    height: 200px;
    border: 2px solid #f1c40f;
    border-radius: 6px;
    cursor: crosshair;
}

.signature-actions {
    margin-top: 15px;
}

.signature-actions button {
    margin: 5px;
}

.signature-preview {
    display: block;
    margin-top: 10px;
    max-width: 220px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 1024px) {
    .card {
        max-width: 95%;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .card-subtitle {
        font-size: 13px;
    }

    .agreement-text {
        font-size: 15px;
    }

    #signatureCanvas {
        height: 180px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    button {
        font-size: 14px;
        padding: 10px;
    }

    .signature-box {
        padding: 15px;
    }
}


/* logo */
/* Page background */
.agreement-wrapper {
    background: #4ea7b3; /* teal background */
    padding: 40px;
}

/* White card */
.agreement-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f4a261; /* orange border */
    padding: 40px;
    max-width: 1100px;
    margin: auto;
}

/* Layout */
.agreement-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Logo */
.agreement-logo img {
    max-width: 180px;
    height: auto;
}

/* Text section */
.agreement-text h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.agreement-text p {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .agreement-content {
        flex-direction: column;
        text-align: center;
    }
}




/* BOOKING POPUP */

.booking-popup{
    position: fixed;
    inset:0;
    background: rgba(0,0,0,0.65);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.booking-popup-content{
    background:#fff;
    padding:30px;
    border-radius:10px;
    width:90%;
    max-width:420px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.booking-popup-content h3{
    margin-bottom:10px;
}

.popup-buttons{
    display:flex;
    gap:10px;
    justify-content:center;
    margin-top:20px;
}

.popup-buttons button{
    padding:10px 18px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

#continueBookingBtn{
    background:#4CAF50;
    color:#fff;
}

#closePopupBtn{
    background:#ccc;
}
