:root {
    --primary-color: #1a237e;
    --secondary-color: #303f9f;
    --accent-color: #ff4081;
    --background-color: #f5f5f5;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.offer-badge {
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.form-group {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.animate-up {
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(48, 63, 159, 0.3);
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

#selected-country-code {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

select#country {
    background-color: white;
    cursor: pointer;
    padding-right: 30px;
    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='currentColor' 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 10px center;
    background-size: 1em;
}

select#country option {
    padding: 10px;
}

.country-select-container {
    position: relative;
    width: 100%;
}

.country-select-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px;
    padding-right: 30px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select-container select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(48, 63, 159, 0.3);
}

.country-select-container .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.country-select-container select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.country-select-container select option {
    padding: 12px;
    background-color: white;
    color: var(--text-color);
}

.country-select-container select option:hover {
    background-color: var(--secondary-color);
    color: white;
}

.country-select-container select::-webkit-scrollbar {
    width: 8px;
}

.country-select-container select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.country-select-container select::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.country-select-container select::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.country-select-container select option:checked {
    background-color: var(--secondary-color);
    color: white;
}

.booking-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.booking-section h2 {
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    position: relative;
}

.booking-section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto;
}

.captcha-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    user-select: none;
}

.captcha-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.captcha-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.noise-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEX///8AAABhYWFJSUnx8fF6enrW1tYzMzO+TQamAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAQUlEQVQ4jWNgQAX/GbCJ/WeAi/1nRBP7z4ghxoAuxgAXY0ATY8AQY0AXY8AQY0AXY8AQY0AXY8AQY0AXY8AQY8AAACyZBzhR9qABAAAAAElFTkSuQmCC');
    opacity: 0.1;
}

#captchaCanvas {
    display: block;
    margin: 0 auto;
}

.captcha-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.captcha-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.captcha-button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.captcha-button:active {
    transform: scale(0.95);
}

.captcha-input-wrapper {
    position: relative;
    margin-top: 15px;
}

.captcha-input-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 150px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.security-features {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
    color: var(--text-color);
    font-size: 0.9em;
}

.timeout-counter {
    color: var(--accent-color);
    font-weight: bold;
}

.attempts-counter {
    color: var(--secondary-color);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes countdown {
    from { width: 100%; }
    to { width: 0%; }
}

.timeout-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent-color);
    animation: countdown 30s linear;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#captchaText {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    font-weight: bold;
}

#refreshCaptcha {
    background: var(--secondary-color);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#refreshCaptcha:hover {
    background: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    font-size: 4em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.room-preview {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    transition: all 0.3s ease;
}

.room-preview.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.room-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.room-image img:hover {
    transform: scale(1.05);
}

.room-details {
    transition: all 0.3s ease;
}

.room-details h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.room-price {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.room-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    transition: all 0.3s ease;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    background: var(--background-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.feature-item.show {
    opacity: 1;
    transform: translateY(0);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-item:hover i {
    color: white;
    transform: scale(1.2);
}

@keyframes featurePopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    70% {
        transform: scale(1.1) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.feature-item.animate {
    animation: featurePopIn 0.5s ease forwards;
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification.info {
    border-left: 4px solid var(--secondary-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone input styling */
.phone-input-container {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.country-code {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    border-right: 2px solid var(--border-color);
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.phone-input-container input[type="tel"] {
    border: none;
    background: transparent;
    padding: 12px 15px;
    flex: 1;
    width: 100%;
    outline: none;
}

.phone-input-container input[type="tel"]::placeholder {
    color: var(--placeholder-color);
}

/* Invalid phone number styling */
.phone-input-container input[type="tel"]:invalid:not(:placeholder-shown) {
    color: var(--error-color);
}

.phone-input-container input[type="tel"]:invalid:not(:placeholder-shown) ~ .country-code {
    color: var(--error-color);
}

/* Refund Section Styles */
.refund-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.refund-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refund-policy {
    background: var(--input-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.refund-policy h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.refund-policy ul {
    list-style: none;
    padding: 0;
}

.refund-policy li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.refund-policy li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
}

.refund-policy li:last-child {
    border-bottom: none;
}

.refund-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
}

.refund-form h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.refund-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.refund-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.refund-btn:active {
    transform: translateY(0);
}

#otherReason {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

#otherReason:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    form {
        padding: 20px;
    }
    
    .refund-section {
        padding: 20px;
        margin-top: 30px;
    }

    .refund-policy {
        padding: 15px;
    }

    .refund-form {
        padding: 15px;
    }
}
