.form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: #667eea;
}

.form-group input {
    padding: 14px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
}

.form-group input:hover {
    border-color: #cbd5e0;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: #fafbff;
}

.form-group input:valid {
    border-color: #667eea;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #667eea;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.trouble-options {
    display: grid;
    gap: 16px;
}

.trouble-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.trouble-option:hover {
    background: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.trouble-option:hover h3,
.trouble-option:hover p {
    color: white;
}

.trouble-option h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.trouble-option p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Terms of Use Modal */
.terms-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.terms-content {
    text-align: left;
    line-height: 1.6;
}

.terms-content .last-updated {
    font-style: italic;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.terms-content h3 {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.terms-content p {
    color: #555;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.terms-content ul {
    margin: 12px 0 20px 20px;
    color: #555;
}

.terms-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.terms-content strong {
    color: #333;
    font-weight: 600;
}
