:root {
    --primary: #9c8a5a;
    --primary-light: #b9a87d;
    --primary-dark: #7d6d48;
    --secondary: #1a2639;
    --light: #f8f9fa;
    --dark: #343a40;
    --accent: #e8dfc7;
    --font-primary: 'Rufina', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary), 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background-image: linear-gradient(135deg, rgba(232, 223, 199, 0.3) 0%, rgba(156, 138, 90, 0.1) 100%);
    display: block; /* Changed from flex to block */
}

.container {
    max-width: 600px;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(26, 38, 57, 0.1);
    overflow: hidden;
    margin: -100px auto 50px; /* Added positioning similar to booking.css */
    position: relative;
    z-index: 10; /* Ensure container appears above the hero section */
}

.form-header {
    background-color: var(--secondary);
    color: var(--light);
    padding: 30px 35px;
    position: relative;
}

.form-header h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header p {
    margin-top: 8px;
    opacity: 0.8;
    font-size: 14px;
}

.accent-border {
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

.form-content {
    padding: 35px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
    font-size: 14px;
}

.required:after {
    content: " *";
    color: #e74c3c;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--light);
    border: 1px solid rgba(156, 138, 90, 0.3);
    border-radius: 8px;
    font-size: 15px;
    color: var(--dark);
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 138, 90, 0.2);
    background-color: #fff;
}

input::placeholder {
    color: #a8a8a8;
}

.icon-input {
    position: relative;
}

.icon-input input {
    padding-left: 42px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.date-time-group {
    display: flex;
    gap: 15px;
}

.date-time-group .form-group {
    flex: 1;
}

button {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button:hover {
    background-color: var(--primary-dark);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
}

.success-message {
    display: none;
    background-color: var(--accent);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-top: 25px;
    border-radius: 8px;
}

.success-message h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message p {
    color: var(--dark);
    margin-bottom: 8px;
}

.success-message p:last-child {
    margin-bottom: 0;
}

.error-message {
    background-color: #ffe6e6;
    border: 1px solid #ff8080;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #d32f2f;
}

.error-message h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 10px;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 5px;
}

.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(156, 138, 90, 0.3);
    font-weight: 500;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/pickup12.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 0; 
    position: relative;
    z-index: 1; 
}

.hero-content {
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

 .secondary-button {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.home-button-container {
    margin-top: 20px;
    text-align: center;
}

.home-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: var(--primary-dark);
}

.tour-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--light-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 20px;
    background: linear-gradient(45deg, rgba(156, 138, 90, 0.1), rgba(156, 138, 90, 0.2));
    border-radius: 25px;
    transition: var(--transition);
    display: inline-block;
}

.tour-info:hover .tour-text {
    color: var(--primary);
    background: linear-gradient(45deg, rgba(156, 138, 90, 0.2), rgba(156, 138, 90, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Phone input group styles */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-code-wrapper {
    min-width: 120px;
    flex: 2;
}

.country-code-select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
}

.phone-number-input {
    flex: 3;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Ensure icon input styles are available */
.icon-input {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

input, select, textarea {
    padding: 10px 15px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    background-color: white;
}

/* Phone input styling with intl-tel-input */
.iti {
    width: 100%;
    display: block;
}

.iti__input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 52px !important; /* Space for country flag */
    background-color: var(--light);
    border: 1px solid rgba(156, 138, 90, 0.3);
    border-radius: 8px;
    font-size: 15px;
    color: var(--dark);
    transition: all 0.3s ease;
}

.iti__input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 138, 90, 0.2);
    background-color: #fff;
}

.iti__input::placeholder {
    color: #a8a8a8;
}

.iti__input.valid {
    border-color: #28a745;
}

.iti__input.invalid {
    border-color: #dc3545;
}

.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(156, 138, 90, 0.3);
    max-height: 200px;
}

.iti__country {
    padding: 8px 12px;
    transition: background-color 0.2s;
}

.iti__country:hover {
    background-color: var(--accent);
}

.iti__country.iti__highlight {
    background-color: var(--primary-light);
    color: white;
}

.iti__flag-box {
    margin-right: 8px;
}

/* Icon input styling adjustments for intl-tel-input */
.icon-input:has(.iti) .input-icon {
    display: none; /* Hide the icon when intl-tel-input is active */
}

.icon-input .iti {
    position: relative;
}

@media (max-width: 768px) {
    .container {
        max-width: 90%;
        margin: -80px auto 30px; /* Adjusted for mobile */
    }
    
    .hero-section {
        height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .form-content {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .container {
        border-radius: 0;
        box-shadow: none;
    }
    
    .form-header, .form-content {
        padding: 25px;
    }
    
    .date-time-group {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 30vh;
    }
    
    .container {
        margin: -60px auto 20px; /* Adjusted for smaller screens */
        border-radius: 10px;
    }
    
    .form-content {
        padding: 20px;
    }
    
    input, select, button {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    input, select {
        padding-left: 38px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
