:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --bg-color: #0f172a;
    --header-bg: rgba(15, 23, 42, 0.95);
    --card-bg: rgba(30, 41, 59, 0.7);
    --header-height: 100px;
    --header-shrink-height: 70px;
}

/* Main Reservation Page Styles */
.reservation-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 2rem) 1rem 4rem;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.reservation-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.reservation-container {
    max-width: 600px;
    width: 100%;
    margin: 1rem auto;
    animation: fadeInUp 0.8s ease-out;
}

.form-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-family: 'Space Grotesk', sans-serif;
}

.subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
}

.project-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group label::after {
    content: '*';
    color: #ef4444;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group label[for]:has(+ .form-control:required)::after {
    opacity: 1;
}

.form-control {
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

/* Enhanced Select Styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 3rem;
    cursor: pointer;
}

/* Improved Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.character-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Enhanced Form Actions */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.privacy-note i {
    color: var(--success);
    flex-shrink: 0;
}



.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 60px;
}

.alternative-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}

.alternative-contact p {
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.alternative-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.alternative-contact a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Success Message */
.success-message {
    background: var(--success);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

/* Loading state */
.cta-button.loading {
    pointer-events: none;
    opacity: 0.9;
    transform: scale(0.98);
}

.cta-button.loading .btn-text {
    display: none;
}

.cta-button.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Validation Styles */
.form-control.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.validation-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-control.invalid + .validation-message {
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */

/* Tablet and below */
@media (max-width: 768px) {
    .reservation-page {
        padding: calc(var(--header-height) + 1rem) 0.75rem 2rem;
        align-items: flex-start;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 16px;
        backdrop-filter: blur(15px);
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .guarantee-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.875rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .project-form {
        gap: 1.25rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 16px;
        border-radius: 10px;
    }
    
    select.form-control {
        padding-right: 2.5rem;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .submit-btn {
        min-height: 54px;
    }
    
    .privacy-note {
        padding: 0.875rem;
        font-size: 0.85rem;
        text-align: left;
    }
    
    .form-section {
        margin-bottom: 1.75rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .reservation-page {
        padding: calc(var(--header-height) + 0.5rem) 0.5rem 1rem;
    }
    
    .form-wrapper {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
        backdrop-filter: blur(10px);
    }
    
    .header-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .form-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .guarantee-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
    
    .section-title {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
    }
    
    .project-form {
        gap: 1rem;
    }
    
    .form-group {
        gap: 0.375rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 16px;
        border-radius: 8px;
        border-width: 1.5px;
    }
    
    select.form-control {
        padding-right: 2.25rem;
        background-size: 1em;
    }
    
    textarea.form-control {
        min-height: 90px;
        font-size: 16px;
    }
    
    .character-count {
        font-size: 0.75rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .submit-btn {
        min-height: 50px;
    }
    
    .privacy-note {
        padding: 0.75rem;
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.375rem;
    }
    
    .alternative-contact {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .divider {
        font-size: 0.85rem;
        margin-bottom: 0.875rem;
    }
    
    .alternative-contact p {
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .reservation-page {
        padding: calc(var(--header-height) + 0.25rem) 0.25rem 0.75rem;
    }
    
    .form-wrapper {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.675rem 0.75rem;
    }
    
    .cta-button {
        padding: 0.75rem 1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .reservation-page {
        padding: calc(var(--header-height) + 0.5rem) 0.5rem 1rem;
        align-items: flex-start;
    }
    
    .form-wrapper {
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .guarantee-badge {
        display: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-wrapper {
        backdrop-filter: blur(30px);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .form-wrapper,
    .form-control,
    .cta-button {
        transition: none;
        animation: none;
    }
    
    .form-wrapper::before {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .form-wrapper {
        background: var(--card-bg);
    }
}

/* Focus visible for accessibility */
.form-control:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cta-button:focus-visible {
    outline: 2px solid var(--light);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: var(--light);
}

/* Prevent zoom on iOS inputs */
@media (max-width: 768px) {
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px !important;
    }
}




/*
======sucess messages====
*/

/* Enhanced Success Message */
.success-message {
    display: none;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), #34d399);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.success-content i {
    font-size: 4rem;
    color: var(--success);
    animation: bounceIn 0.6s ease-out;
}

.success-text h3 {
    font-size: 1.75rem;
    color: var(--light);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.success-text p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 0.5rem;
}

.success-note {
    color: var(--accent) !important;
    font-style: italic;
}

.success-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin-top: 1rem;
    max-width: 250px;
}

.success-btn:hover {
    transform: translateY(-2px);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive success message */
@media (max-width: 768px) {
    .success-message {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }
    
    .success-content {
        gap: 1.5rem;
    }
    
    .success-content i {
        font-size: 3rem;
    }
    
    .success-text h3 {
        font-size: 1.5rem;
    }
    
    .success-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .success-message {
        padding: 1.5rem 1.25rem;
    }
    
    .success-content i {
        font-size: 2.5rem;
    }
    
    .success-text h3 {
        font-size: 1.25rem;
    }
    
    .success-text p {
        font-size: 0.95rem;
    }
    
    .success-btn {
        max-width: 100%;
    }
}