@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #508E87;
    --primary-dark: #184D47;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --text-color: #333;
    --light-text: #777;
    --light-bg: #f5f7fa;
    --border-color: #ddd;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header h1 {
    color: var(--primary-dark);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Libre Baskerville', serif;
}

.back-link {
    display: inline-flex;
    align-items: center;
    background-color: #f1f1f1 !important;
    color: #555 !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    margin-top: 15px;
}

.back-link:hover {
    background-color: #e5e5e5 !important;
    transform: translateY(-2px);
}

/* Progress Steps */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--light-text);
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-title {
    font-size: 14px;
    color: var(--light-text);
    transition: var(--transition);
    font-weight: 500;
}

.step.active .step-number, .step.completed .step-number {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.active .step-title, .step.completed .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-number::after {
    content: '✓';
}

/* Step Content Animation */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

h3 {
    color: var(--primary-dark);
    margin: 25px 0 15px;
    font-weight: 500;
    font-size: 20px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(80, 142, 135, 0.2);
}

.date-range {
    display: flex;
    gap: 25px;
}

.date-range .form-group {
    flex: 1;
}

/* Tour Type Selection */
.tour-type-selection {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.tour-type-info {
    margin: 0 0 20px 0 !important;
    padding: 15px !important;
    background-color: #e9f7fd !important;
    border-left: 4px solid #4fc3f7 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    max-width: 100% !important;
    line-height: 1.5;
}

#tour-type-display {
    margin: 0 0 20px 0 !important;
    padding: 15px !important;
    background-color: #e9f7fd !important;
    border-left: 4px solid #4fc3f7 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    max-width: 100% !important;
    line-height: 1.5;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

/* Room Cards */
.room-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.room-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.room-image {
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-details h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.room-description {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.6;
}

.room-info {
    margin-bottom: 8px;
    font-size: 15px;
}

.room-selection {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.room-quantity, .room-tour-type {
    max-width: 120px;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
}

/* Guest Counts and Validation */
.guest-counts {
    margin-top: 30px !important;
    padding: 20px !important;
    background-color: #f8f9fa;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#guest-validation-message {
    color: var(--danger-color) !important;
    margin-top: 10px !important;
    font-size: 14px !important;
    font-weight: 500;
}

/* Additional Options */
.additional-options-section {
    margin-top: 40px;
}

.pet-option, .corkage-option, #second-house-option {
    margin-top: 20px !important;
    padding: 20px !important;
    background-color: #f8f9fa;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

#pet-quantity-container, #corkage-quantity-container {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
    margin-top: 15px;
    display: none;
}

/* Selected Rooms Summary */
.selected-rooms-summary {
    background-color: #f5f9ff;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.selected-rooms-summary h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.selected-rooms-summary ul {
    list-style: none;
    padding: 0;
}

.selected-rooms-summary li {
    padding: 12px 0;
    border-bottom: 1px solid #e6e9ec;
}

.selected-rooms-summary p {
    margin: 15px 0 5px;
    font-weight: 500;
}

.selected-room {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.room-name {
    font-weight: 600;
    color: var(--primary-dark);
}

.room-details {
    font-size: 14px;
    color: var(--light-text);
}

/* Navigation Buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    align-items: center;
}

button {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button.next, button.submit {
    background-color: var(--primary-color);
    color: white;
}

button.prev {
    background-color: #f1f1f1;
    color: var(--text-color);
}

button.save-for-later {
    background-color: var(--accent-color);
    color: white;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Confirmation Step */
.confirmation-details {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 35px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.confirmation-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.confirmation-label {
    width: 150px;
    font-weight: 500;
    color: var(--text-color);
}

.confirmation-value {
    flex: 1;
}

.total-price {
    font-weight: 700;
    color: var(--danger-color);
    font-size: 20px;
}

.downpayment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
}

/* Entrance Fee Note */
.entrance-fee-note {
    margin-top: 25px !important;
    padding: 20px !important;
    background-color: #fff3cd !important;
    border-radius: 10px !important;
    border-left: 4px solid #ffc107 !important;
    font-size: 15px !important;
}

.entrance-fee-note h3 {
    color: #856404;
    margin-top: 0;
}

.entrance-fee-note ul {
    margin-top: 10px;
    padding-left: 20px;
}

.entrance-fee-note li {
    margin-bottom: 5px;
}

/* Expiration Timer */
.expiration-timer {
    background-color: #f8d7da;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    border-left: 4px solid #dc3545;
    font-size: 15px;
    display: none;
}

.countdown {
    font-weight: 700;
    color: #dc3545;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.payment-method {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    background-color: #fff;
}

.payment-method.selected {
    border-color: var(--primary-color);
    background-color: rgba(80, 142, 135, 0.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.payment-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.payment-details {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.payment-details p {
    margin-bottom: 10px;
}

.payment-details strong {
    color: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .date-range {
        flex-direction: column;
        gap: 15px;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    button {
        width: 100%;
    }
    
    .room-options {
        grid-template-columns: 1fr;
    }
}

/* Navbar and Header Styles */
.page-header {
    width: 100%;
    background: var(--primary-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.nav-links li a:hover::after {
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    border-radius: 50%;
    height: auto;
    margin-right: 15px;
    border: 2px solid white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: "Dancing Script", serif;
    font-size: 2.8em;
    color: white;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.logo h2 {
    font-family: "Libre Baskerville", serif;
    font-size: 1.6em;
    color: white;
    font-weight: normal;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.user-icon {
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.user-icon img {
    width: 40px;
    border-radius: 50%;
    height: auto;
    border: 2px solid white;
    transition: transform 0.3s ease;
}

.user-icon img:hover {
    transform: scale(1.1);
}

/* Mobile Menu */
.top-space {
    width: 100%;
    height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    padding-left: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    font-size: 30px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    color: black;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: top 0.4s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.menu.active {
    top: 0;
}

.close-icon {
    position: absolute;
    top: 45px;
    left: 20px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
}

/* Make file inputs more attractive */
input[type="file"] {
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
}

/* Fix for the pet and corkage options */
#pet-quantity-container, #corkage-quantity-container {
    margin-top: 15px;
    display: none;
}

#pet-quantity, #corkage-quantity {
    width: 100px;
    text-align: center;
}

/* Special styling for the private room */
.private-room .room-image {
    border: 3px solid var(--success-color);
}