.email-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.email-field {
    position: relative;
}

.email-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: block;
}

.email-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.email-input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.email-input.valid {
    border-color: #28a745;
    padding-right: 50px;
}

.email-input.invalid {
    border-color: #dc3545;
    padding-right: 50px;
}

.email-suggestions {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.email-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f8f9fa;
}

.suggestion-item:active {
    background-color: #e9ecef;
}

.suggestion-icon {
    font-size: 16px;
}

.suggestion-text {
    font-size: 15px;
    color: #495057;
}

.suggestion-domain {
    color: #6c757d;
    font-weight: 500;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.autocomplete-hint {
    color: #6c757d;
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
   .email-container {
        padding: 20px;
    }

    .email-input {
        font-size: 16px; /* iOS 줌 방지 */
        padding: 14px 45px 14px 14px;
    }

    .suggestion-item {
        padding: 14px 16px;
    }
}