.form-container {
    max-width: 800px;
    margin: 80px auto 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideIn 0.5s ease-out;
}
.autocomplete-dropdown {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 220px;
    overflow-y: auto;
    font-size: 1rem;
}
.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}
.autocomplete-item:hover,
.autocomplete-item:focus {
    background: #f0f8ff;
}

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

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

h2 {
    color: #444;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 1 0 100%;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.terms-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.signature-container {
    margin: 20px 0;
}

#signatureCanvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    display: block;
    width: 100%;
    cursor: crosshair;
    background: white;
    /* iOS Safari fixes */
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Prevent zoom on double tap */
    user-select: none;
    /* Ensure proper scaling */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.signature-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type="checkbox"] {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label {
    flex: 1;
    line-height: 1.6;
    color: #555;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-clear {
    background: #e74c3c;
    color: white;
}

.btn-clear:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    margin-top: 30px;
    font-size: 18px;
    padding: 15px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.disclaimer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    h1 {
        font-size: 2em;
    }

    .form-container {
        padding: 30px 20px;
    }
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.space {
    flex-grow: 1;
    text-align: center;
}

.btn {
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

#submitBtn {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    transition: 0.3s;
    border: 2px solid var(--accent-color);
    background-color: white;
}

#submitBtn:hover {
    background-color: #14741b;
    color: white;
}

/* Active state */
/* #submitBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} */
