:root {
    --primary: #2E7D32;        /* Green */
    --primary-light: #4CAF50;  /* Light green */
    --primary-dark: #1B5E20;   /* Dark green */
    --secondary: #1a2639;      /* Dark blue */
    --light: #f8f9fa;         /* Light background */
    --dark: #343a40;          /* Dark text */
    --accent: #E8F5E8;        /* Light green */
    --shadow: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    min-height: 100vh;
    display: block;
    margin: 0;
    padding: 0;
    background: var(--light);
    line-height: 1.6;
    background-image: linear-gradient(135deg, rgba(244, 255, 195, 0.3) 0%, rgba(93, 135, 54, 0.1) 100%);
}

.container {
    max-width: 700px;
    width: 95%;
    margin: -120px auto 60px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.form-content {
    padding: 45px 40px;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.required:after {
    content: " *";
    color: #ff4757;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

input, textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(46, 125, 50, 0.2);
    border-radius: 12px;
    font-size: 16px;
    color: var(--dark);
    transition: var(--transition);
    font-family: var(--font-primary);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(46, 125, 50, 0.15),
        0 8px 25px rgba(46, 125, 50, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

input:hover, textarea:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.icon-input {
    position: relative;
}

.icon-input input {
    padding-left: 50px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
    font-size: 18px;
    transition: var(--transition);
}

.icon-input input:focus + .input-icon {
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 18px;
}

button {
    width: 100%;
    padding: 18px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(46, 125, 50, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(46, 125, 50, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(-1px);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
}

.success-message, .error-message {
    display: none;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(46, 125, 50, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-left: 6px solid var(--primary);
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.1);
    animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border: 2px solid rgba(255, 71, 87, 0.3);
    border-left: 6px solid #ff4757;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.1);
}

.success-message h3, .error-message h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.error-message h3 {
    color: #c0392b;
}

.success-message p, .error-message p {
    color: var(--dark);
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.6;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.back-button {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(46, 125, 50, 0.05);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    margin-top: 20px;
}

.back-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/createtour.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 0;
    position: relative; 
    z-index: 1;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #2E7D32, transparent);
    z-index: 2;
}

.hero-content {
    padding: 3rem;
    position: relative;
    z-index: 3;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    to {
        text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.3);
    }
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.secondary-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 20px;
}

/* Phone input group styling */
.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.country-code-wrapper {
    flex: 0 0 140px;
    position: relative;
}

.country-code-wrapper .input-icon {
    display: none;
}

.country-code-select {
    width: 100%;
    padding: 18px 16px;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(46, 125, 50, 0.2);
    border-radius: 12px;
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.country-code-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15), 0 8px 25px rgba(46, 125, 50, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.country-code-select:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.phone-number-input {
    flex: 1;
    padding: 18px 16px !important;
    padding-left: 16px !important;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.country-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border-radius: 2px;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom styles for International Tel Input */
.iti {
    width: 100% !important;
    margin-bottom: 10px;
}

.iti__country-list {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: none;
    max-height: 300px;
    overflow-y: auto;
}

.iti__country {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.iti__country:hover {
    background-color: var(--accent);
}

.iti__country.iti__highlight {
    background-color: var(--primary-light);
    color: white;
}

.iti__flag-box {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    overflow: hidden;
}

.iti__selected-flag {
    padding: 0 12px 0 8px;
    border-right: 1px solid #e0e0e0;
    background: transparent;
}

.iti__selected-flag:hover {
    background-color: #f5f5f5;
}

.iti__arrow {
    border-color: var(--dark) transparent transparent;
    margin-left: 8px;
}

.iti input[type="tel"] {
    width: 100%;
    padding: 16px 20px 16px 80px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.iti input[type="tel"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    outline: none;
}

.iti input[type="tel"]::placeholder {
    color: #999;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .container {
        width: 98%;
        margin: -80px auto 40px;
    }
    
    .form-content {
        padding: 30px 25px;
    }
    
    .iti input[type="tel"] {
        padding: 14px 16px 14px 70px;
        font-size: 16px;
    }
    
    .iti__selected-flag {
        padding: 0 8px 0 6px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .country-code-wrapper {
        flex: none;
    }
    
    button {
        font-size: 16px;
        padding: 16px 20px;
    }
}