.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e7e5e4;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}

/* Select dropdown styles */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C29886' 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 1.5rem center;
    background-size: 20px;
    padding-right: 3.5rem;
    cursor: pointer;
}

select.form-input:hover {
    border-color: #C29886;
}

select.form-input option {
    padding: 0.75rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .form-input {
        padding: 1.25rem 1.75rem;
        font-size: 1.0625rem;
    }
}

.form-input:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.benefit-card {
    background: white;
    padding: 1.75rem;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .benefit-card {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .benefit-card {
        padding: 3rem;
    }
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Material Icons sizing */
.material-icons.text-5xl {
    font-size: 3rem;
}

.material-icons.text-6xl {
    font-size: 3.75rem;
}

@media (min-width: 1024px) {
    .material-icons.text-5xl {
        font-size: 3.5rem;
    }
    
    .material-icons.text-6xl {
        font-size: 4.5rem;
    }
}

/* Global styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Form validation styles */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #B84A44;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #6D9E7A;
}

/* Loading state */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Mobile optimization */
@media (max-width: 767px) {
    .benefit-card {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
    
    .material-icons.text-5xl {
        font-size: 2rem !important;
    }
    
    .material-icons.text-6xl {
        font-size: 2.5rem !important;
    }
    
    /* Hero section mobile optimization */
    #hero {
        padding-top: 2rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Section spacing optimization */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    section.py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Desktop optimization */
@media (min-width: 1280px) {
    .step-number {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }
}

/* Animation delays for cards */
@media (prefers-reduced-motion: no-preference) {
    .benefit-card:nth-child(1) {
        animation: fadeInUp 0.6s ease-out;
    }

    .benefit-card:nth-child(2) {
        animation: fadeInUp 0.6s ease-out 0.1s backwards;
    }

    .benefit-card:nth-child(3) {
        animation: fadeInUp 0.6s ease-out 0.2s backwards;
    }

    .benefit-card:nth-child(4) {
        animation: fadeInUp 0.6s ease-out 0.3s backwards;
    }
}

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

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@media (min-width: 768px) {
    .modal-content {
        padding: 3rem;
    }
    
    .modal-overlay {
        padding: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Radio button styles */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #C29886;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="radio"]:hover {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input[type="radio"]:checked {
    border-color: #6366F1;
    background-color: #6366F1;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Question card styles */
.bg-stone-50 {
    transition: all 0.3s ease;
}

.bg-stone-50:hover {
    background-color: #fafaf9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Screenshot gallery styles */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

#screenshot-gallery {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Fade edges effect */
#screenshot-gallery::before,
#screenshot-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 20px;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

#screenshot-gallery::before {
    left: 0;
    background: linear-gradient(to right, rgba(241, 230, 219, 0.8), transparent);
}

#screenshot-gallery::after {
    right: 0;
    background: linear-gradient(to left, rgba(241, 230, 219, 0.8), transparent);
}

@media (max-width: 767px) {
    #screenshot-gallery::before,
    #screenshot-gallery::after {
        width: 20px;
    }
}
