:root {
    --primary: #9c8a5a;        /* Gold */
    --primary-light: #b9a87d;  /* Light gold */
    --primary-dark: #7d6d48;   /* Dark gold */
    --secondary: #1a2639;      /* Dark blue */
    --light: #f8f9fa;         /* Light background */
    --dark: #343a40;          /* Dark text */
    --accent: #e8dfc7;        /* Light gold */
    --shadow: rgba(0, 0, 0, 0.15);
    --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; /* Premium font */
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    background: var(--light);
    line-height: 1.6;
    background-image: linear-gradient(135deg, rgba(232, 223, 199, 0.3) 0%, rgba(156, 138, 90, 0.1) 100%);
}

.travel-form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow), inset 0 0 10px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(232, 223, 199, 0.5);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.travel-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(156, 138, 90, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
}

h2 {
    color: var(--secondary);
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    position: relative;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

p {
    color: var(--dark);
    background: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.form-label {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.input-group-text {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    transition: background 0.3s ease;
}

.input-group-text:hover {
    background: var(--primary-dark);
}

.form-control {
    border: none;
    border-bottom: 2px solid var(--accent);
    border-radius: 0;
    padding: 0.9rem 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 15px rgba(156, 138, 90, 0.2);
    background: white;
    outline: none;
}

.form-control:hover {
    border-bottom-color: var(--primary-dark);
}

textarea.form-control {
    border: 2px solid var(--accent);
    border-radius: 8px;
    min-height: 120px;
    resize: vertical;
}

textarea.form-control:focus {
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 1rem;
    border-radius: 50px; /* Matches rounded-pill */
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(125, 109, 72, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:disabled {
    background: var(--primary-dark);
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Button active states */
.btn-primary:active,
.btn-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(125, 109, 72, 0.25) !important;
}

.btn-outline-secondary {
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 50px; /* Matches rounded-pill */
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.4s ease;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(26, 38, 57, 0.2);
}

.alert {
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-success {
    background: var(--accent);
    color: var(--primary-dark);
    border-left: 5px solid var(--primary);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.text-danger {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Input group hover effect */
.mb-4 {
    position: relative;
    margin-bottom: 2rem !important;
}

.mb-4:hover .form-label {
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .travel-form-container {
        padding: 2rem;
        margin: 20px auto;
    }
    h2 {
        font-size: 2rem;
    }
    .btn-primary {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

.container {
    max-width: 600px;
    width: 100%;
    margin: -50px auto 50px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(26, 38, 57, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.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, textarea {
    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, textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 138, 90, 0.2);
    background-color: #fff;
}

input::placeholder, textarea::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);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

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, .error-message {
    background-color: var(--accent);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.success-message h3, .error-message h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message h3 {
    color: #e74c3c;
}

.success-message p, .error-message p {
    color: var(--dark);
    margin-bottom: 8px;
}

.back-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-button:hover {
    background-color: var(--secondary);
    color: white;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 20px;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/tourbg789.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.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);
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: white;
}

.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;
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Phone input group styling */
.phone-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-code-wrapper {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.country-code-wrapper .input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.country-code-select {
    width: 100%;
    padding: 14px 16px 14px 40px;
    border: 1px solid rgba(156, 138, 90, 0.3);
    border-radius: 8px;
    background-color: var(--light);
    appearance: none;
    cursor: pointer;
    font-size: 15px;
}

.country-code-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 138, 90, 0.2);
}

.phone-number-input {
    flex-grow: 1;
    font-family: monospace; /* Makes the spacing more consistent */
}

/* Add a small indicator to remind users not to delete the country code */
.phone-input-group {
    position: relative;
}

/* Adjust hint text to be more noticeable */
.hint {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
    font-style: italic;
}

.country-flag {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

.country-option {
    display: flex;
    align-items: center;
}

/* Responsive adjustments for phone input */
@media (max-width: 480px) {
    .phone-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .country-code-wrapper {
        width: 100%;
    }
}

/* 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;
}

/* Responsive adjustments for phone input */
@media (max-width: 480px) {
    .phone-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .country-code-wrapper {
        width: 100%;
    }
}