css
/* Screen 4 styles */
.screen4 {
    display: none;
}

.screen4.active {
    display: block;
}

.form-section {
    margin: 20px 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    /* Touch optimization */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Mobile keyboard optimization */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Better mobile input handling */
    -webkit-text-size-adjust: 100%;
    -webkit-user-select: text;
    user-select: text;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    /* Ensure keyboard doesn't hide input on mobile */
    transform: translateZ(0);
}

.input-group textarea::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* Mobile keyboard optimization */
@supports (env(keyboard-inset-height)) {
    .form-section {
        padding-bottom: env(keyboard-inset-height);
    }
}

/* Input types for better mobile keyboards */
input[type="tel"] {
    /* Numeric keyboard on mobile */
    inputmode: numeric;
}

input[type="email"] {
    /* Email keyboard on mobile */
    inputmode: email;
}

input[type="url"] {
    /* URL keyboard on mobile */
    inputmode: url;
}

input[type="search"] {
    /* Search keyboard on mobile */
    inputmode: search;
}

/* Enhanced form input styles */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px; /* Prevents zoom on iOS */
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    /* Mobile optimization */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Touch target size */
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    transform: translateZ(0);
}

.form-input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* Select dropdown optimization */
select.form-input {
    cursor: pointer;
    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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Form validation styles */
.form-input:invalid {
    border-color: var(--error-color, #e74c3c);
}

.form-input:valid {
    border-color: var(--success-color, #27ae60);
}

/* Loading state for forms */
.form-loading {
    pointer-events: none;
    opacity: 0.6;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}